some ScreenSelectProfile stuff
This commit is contained in:
@@ -13,8 +13,13 @@ function GetLocalProfiles()
|
|||||||
InitCommand=cmd(shadowlength,1;y,-9;ztest,true);
|
InitCommand=cmd(shadowlength,1;y,-9;ztest,true);
|
||||||
};
|
};
|
||||||
LoadFont("Common Normal") .. {
|
LoadFont("Common Normal") .. {
|
||||||
Text=profile:GetNumTotalSongsPlayed() .. " Songs Played";
|
|
||||||
InitCommand=cmd(shadowlength,1;y,9;zoom,0.5;vertspacing,-8;ztest,true);
|
InitCommand=cmd(shadowlength,1;y,9;zoom,0.5;vertspacing,-8;ztest,true);
|
||||||
|
BeginCommand=function(self)
|
||||||
|
local numSongsPlayed = profile:GetNumTotalSongsPlayed();
|
||||||
|
local s = numSongsPlayed == 1 and "Song" or "Songs";
|
||||||
|
-- todo: localize
|
||||||
|
self:settext( numSongsPlayed.." "..s.." Played" );
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
table.insert( ret, item );
|
table.insert( ret, item );
|
||||||
@@ -26,12 +31,7 @@ end;
|
|||||||
function LoadPlayerStuff(Player)
|
function LoadPlayerStuff(Player)
|
||||||
local ret = {};
|
local ret = {};
|
||||||
|
|
||||||
local pn;
|
local pn = (Player == PLAYER_1) and 1 or 2;
|
||||||
if Player == PLAYER_1 then
|
|
||||||
pn = 1;
|
|
||||||
else
|
|
||||||
pn = 2;
|
|
||||||
end;
|
|
||||||
|
|
||||||
--[[ local t = LoadActor(THEME:GetPathB('', '_frame 3x3'), 'metal', 200, 230) .. {
|
--[[ local t = LoadActor(THEME:GetPathB('', '_frame 3x3'), 'metal', 200, 230) .. {
|
||||||
Name = 'BigFrame';
|
Name = 'BigFrame';
|
||||||
@@ -132,8 +132,8 @@ function LoadPlayerStuff(Player)
|
|||||||
}; --]]
|
}; --]]
|
||||||
t = LoadFont("Common Normal") .. {
|
t = LoadFont("Common Normal") .. {
|
||||||
Name = 'SelectedProfileText';
|
Name = 'SelectedProfileText';
|
||||||
InitCommand=cmd(y,160);
|
--InitCommand=cmd(y,160;shadowlength,1;diffuse,PlayerColor(Player));
|
||||||
OnCommand=cmd(shadowlength,1);
|
InitCommand=cmd(y,160;shadowlength,1;);
|
||||||
};
|
};
|
||||||
table.insert( ret, t );
|
table.insert( ret, t );
|
||||||
|
|
||||||
@@ -141,12 +141,7 @@ function LoadPlayerStuff(Player)
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function UpdateInternal3(self, Player)
|
function UpdateInternal3(self, Player)
|
||||||
local pn;
|
local pn = (Player == PLAYER_1) and 1 or 2;
|
||||||
if Player == PLAYER_1 then
|
|
||||||
pn = 1;
|
|
||||||
else
|
|
||||||
pn = 2;
|
|
||||||
end;
|
|
||||||
local frame = self:GetChild(string.format('P%uFrame', pn));
|
local frame = self:GetChild(string.format('P%uFrame', pn));
|
||||||
local scroller = frame:GetChild('Scroller');
|
local scroller = frame:GetChild('Scroller');
|
||||||
local seltext = frame:GetChild('SelectedProfileText');
|
local seltext = frame:GetChild('SelectedProfileText');
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Explanation=Quick Setup provides a easy way to set commonly-changed and useful p
|
|||||||
[ScreenProfileLoad]
|
[ScreenProfileLoad]
|
||||||
HelpText=... Loading profiles, please wait ...
|
HelpText=... Loading profiles, please wait ...
|
||||||
[ScreenSelectProfile]
|
[ScreenSelectProfile]
|
||||||
HelpText=&BACK; Cancel &START; Select / Join &MENULEFT;&MENURIGHT; Move
|
HelpText=&MENUUP;&MENUDOWN; Switch Profile &START; Choose/Join &BACK; Unselect
|
||||||
[ScreenSelectMaster]
|
[ScreenSelectMaster]
|
||||||
HelpText=&BACK; Exit &START; Select / Join &MENULEFT;&MENURIGHT; Move
|
HelpText=&BACK; Exit &START; Select / Join &MENULEFT;&MENURIGHT; Move
|
||||||
[ScreenSelectPlayMode]
|
[ScreenSelectPlayMode]
|
||||||
|
|||||||
Reference in New Issue
Block a user