2011-03-17 01:47:30 -04:00
|
|
|
InitUserPrefs();
|
|
|
|
|
local t = Def.ActorFrame {};
|
|
|
|
|
|
|
|
|
|
t[#t+1] = StandardDecorationFromFileOptional("Logo","Logo");
|
|
|
|
|
t[#t+1] = StandardDecorationFromFileOptional("VersionInfo","VersionInfo");
|
|
|
|
|
t[#t+1] = StandardDecorationFromFileOptional("CurrentGametype","CurrentGametype");
|
|
|
|
|
t[#t+1] = StandardDecorationFromFileOptional("LifeDifficulty","LifeDifficulty");
|
|
|
|
|
t[#t+1] = StandardDecorationFromFileOptional("TimingDifficulty","TimingDifficulty");
|
|
|
|
|
t[#t+1] = StandardDecorationFromFileOptional("NetworkStatus","NetworkStatus");
|
|
|
|
|
t[#t+1] = StandardDecorationFromFileOptional("SystemDirection","SystemDirection");
|
2011-06-28 13:47:42 -07:00
|
|
|
--
|
|
|
|
|
t[#t+1] = StandardDecorationFromFileOptional("NumSongs","NumSongs") .. {
|
|
|
|
|
SetCommand=function(self)
|
|
|
|
|
local InstalledSongs, AdditionalSongs, InstalledCourses, AdditionalCourses, Groups, Unlocked = 0;
|
|
|
|
|
if SONGMAN:GetRandomSong() then
|
|
|
|
|
InstalledSongs, AdditionalSongs, InstalledCourses, AdditionalCourses, Groups, Unlocked =
|
|
|
|
|
SONGMAN:GetNumSongs(),
|
|
|
|
|
SONGMAN:GetNumAdditionalSongs(),
|
|
|
|
|
SONGMAN:GetNumCourses(),
|
|
|
|
|
SONGMAN:GetNumAdditionalCourses(),
|
|
|
|
|
SONGMAN:GetNumSongGroups(),
|
|
|
|
|
SONGMAN:GetNumUnlockedSongs();
|
|
|
|
|
else
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
self:settextf("%i Songs (%i Groups), %i Courses", InstalledSongs, Groups, InstalledCourses);
|
|
|
|
|
-- self:settextf("%i (+%i) Songs (%i Groups), %i (+%i) Courses", InstalledSongs, AdditionalSongs, Groups, InstalledCourses, AdditionalCourses);
|
|
|
|
|
end;
|
|
|
|
|
};
|
2011-03-17 01:47:30 -04:00
|
|
|
|
2010-01-26 21:00:30 -06:00
|
|
|
return t
|