Files
itgmania212121/Themes/_fallback/BGAnimations/ScreenNameEntryTraditional underlay/default.lua
T
2011-08-02 22:32:02 -04:00

40 lines
1006 B
Lua

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());
};
LoadFont("Common Normal") .. {
Text="No players has a high score";
BeginCommand=cmd(visible,not SCREENMAN:GetTopScreen():GetAnyEntering());
};
--[[ for pn in ivalues(Players) do
LoadFont("Common Normal") .. {
Text=ToEnumShortString(pn);
InitCommand=cmd(x,128 * tMath[pn];y,32);
};
end --]]
};
--
t[#t+1] = Def.Actor {
MenuTimerExpiredMessageCommand = function(self, param)
for pn in ivalues(Players) do
SCREENMAN:GetTopScreen():Finish(pn);
end
end;
CodeMessageCommand=function(self,param)
if param.Name == "Enter" then
SCREENMAN:GetTopScreen():Finish(pn);
end
end
};
--
return t