diff --git a/stepmania/Themes/default/BGAnimations/ScreenSystemLayer overlay.lua b/stepmania/Themes/default/BGAnimations/ScreenSystemLayer overlay.lua new file mode 100644 index 0000000000..14e1b99685 --- /dev/null +++ b/stepmania/Themes/default/BGAnimations/ScreenSystemLayer overlay.lua @@ -0,0 +1,50 @@ +function CreditsText( pn ) + function update(self) + local str = ScreenSystemLayerHelpers.GetCreditsMessage(pn); + self:settext(str); + end + + local text = Def.BitmapText { + Font=THEME:GetPathF("ScreenManager","credits"); + InitCommand=cmd(shadowlength,0); + RefreshCreditTextMessageCommand=update; + CoinInsertedMessageCommand=update; + PlayerJoinedMessageCommand=update; + }; + return text; +end + +local t = Def.ActorFrame { + children = { + Def.BitmapText { + Font=THEME:GetPathF(Var "LoadingScreen","message"); + Text="xxx"; + InitCommand=cmd(visible,false); +OnCommand=cmd(maxwidth,750;finishtweening;horizalign,left;vertalign,top;x,SCREEN_LEFT+20;y,SCREEN_TOP+20;zoom,0.8;shadowlength,2;diffusealpha,1;addx,-SCREEN_WIDTH;linear,0.5;addx,SCREEN_WIDTH); +OffCommand=cmd(sleep,5;linear,0.5;diffusealpha,0); + + SystemMessageMessageCommand = function(self) + self:visible(true); + self:settext( SCREENMAN:GetCurrentSystemMessage() ); + self:playcommand( "On" ); + self:playcommand( "Off" ); + end; + SystemMessageNoAnimateMessageCommand = function(self) + self:visible(true); + self:settext( SCREENMAN:GetCurrentSystemMessage() ); + self:playcommand( "On" ); + self:FinishTweening(); + self:playcommand( "Off" ); + end; + HideSystemMessageMessageCommand = cmd(visible,false); + }; + CreditsText( PLAYER_1 ) .. { + InitCommand=cmd(x,SCREEN_LEFT+120;y,SCREEN_BOTTOM-6); + }; + CreditsText( PLAYER_2 ) .. { + InitCommand=cmd(x,SCREEN_RIGHT-120;y,SCREEN_BOTTOM-6); + }; + + }; +}; +return t;