2011-03-17 01:47:30 -04:00
|
|
|
local t = Def.ActorFrame {};
|
|
|
|
|
t.InitCommand=function(self)
|
|
|
|
|
self:name("ArcadeOverlay")
|
|
|
|
|
ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen")
|
|
|
|
|
end;
|
|
|
|
|
t[#t+1] = Def.ActorFrame {
|
|
|
|
|
Name="ArcadeOverlay.Text";
|
|
|
|
|
InitCommand=function(self)
|
|
|
|
|
ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen")
|
|
|
|
|
end;
|
2017-08-08 01:07:34 -06:00
|
|
|
LoadActor(THEME:GetPathB("_frame","3x1"),"rounded fill", 250-32) .. {
|
|
|
|
|
OnCommand=cmd(diffuse,color("#8C1940");diffusealpha,1);
|
2011-03-17 01:47:30 -04:00
|
|
|
};
|
2017-08-08 01:07:34 -06:00
|
|
|
LoadFont("Common Italic Condensed") .. {
|
|
|
|
|
InitCommand=cmd(zoom,1;shadowlength,1;strokecolor,Color("Outline");diffuse,color("#FAB56B");diffusetopedge,color("#F2D5A2");uppercase,true);
|
2014-09-16 17:14:07 -07:00
|
|
|
Text="...";
|
2013-07-18 18:02:01 -04:00
|
|
|
OnCommand=cmd(playcommand,"Refresh");
|
|
|
|
|
CoinInsertedMessageCommand=cmd(playcommand,"Refresh");
|
|
|
|
|
CoinModeChangedMessageCommand=cmd(playcommand,"Refresh");
|
2011-03-17 01:47:30 -04:00
|
|
|
RefreshCommand=function(self)
|
|
|
|
|
local bCanPlay = GAMESTATE:EnoughCreditsToJoin();
|
|
|
|
|
local bReady = GAMESTATE:GetNumSidesJoined() > 0;
|
|
|
|
|
if bCanPlay or bReady then
|
|
|
|
|
self:settext(THEME:GetString("ScreenTitleJoin","HelpTextJoin"));
|
|
|
|
|
else
|
|
|
|
|
self:settext(THEME:GetString("ScreenTitleJoin","HelpTextWait"));
|
|
|
|
|
end
|
|
|
|
|
end;
|
|
|
|
|
};
|
|
|
|
|
};
|
2010-08-07 14:51:27 -05:00
|
|
|
return t
|