Files
itgmania212121/Themes/_fallback/BGAnimations/ScreenNameEntryTraditional underlay/default.lua
T

40 lines
1006 B
Lua
Raw Normal View History

2011-08-02 22:32:02 -04:00
local Players = GAMESTATE:GetHumanPlayers();
--[[ local tMath = {
PLAYER_1 = -1,
PLAYER_2 = 1
}; --]]
--
local t = Def.ActorFrame {};
-- Is Anyone Enabled To Join
t[#t+1] = Def.ActorFrame {
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y);
LoadFont("Common Normal") .. {
Text="A player has a high score";
BeginCommand=cmd(visible,SCREENMAN:GetTopScreen():GetAnyEntering());
};
2011-08-02 22:32:02 -04:00
LoadFont("Common Normal") .. {
Text="No players has a high score";
BeginCommand=cmd(visible,not SCREENMAN:GetTopScreen():GetAnyEntering());
};
2011-08-02 22:32:02 -04:00
--[[ for pn in ivalues(Players) do
LoadFont("Common Normal") .. {
Text=ToEnumShortString(pn);
InitCommand=cmd(x,128 * tMath[pn];y,32);
};
end --]]
};
2011-08-02 22:32:02 -04:00
--
t[#t+1] = Def.Actor {
MenuTimerExpiredMessageCommand = function(self, param)
for pn in ivalues(Players) do
SCREENMAN:GetTopScreen():Finish(pn);
end
end;
2011-08-02 22:32:02 -04:00
CodeMessageCommand=function(self,param)
if param.Name == "Enter" then
SCREENMAN:GetTopScreen():Finish(pn);
end
2011-08-02 22:32:02 -04:00
end
};
2011-08-02 22:32:02 -04:00
--
2011-08-02 18:36:54 -07:00
return t