diff --git a/Themes/_fallback/BGAnimations/ScreenMapControllers overlay.lua b/Themes/_fallback/BGAnimations/ScreenMapControllers overlay.lua new file mode 100644 index 0000000000..9c4183db44 --- /dev/null +++ b/Themes/_fallback/BGAnimations/ScreenMapControllers overlay.lua @@ -0,0 +1,25 @@ +local t = Def.ActorFrame { + InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y); + OnCommand=cmd(queuecommand,"TweenOn";sleep,5;queuecommand,"TweenOff"); +} +t[#t+1] = Def.Quad { + InitCommand=cmd(zoomto,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,Color.Black); + TweenOnCommand=cmd(diffusealpha,1;linear,0.5;diffusealpha,0.8); + TweenOffCommand=cmd(linear,0.5;diffusealpha,0); +}; +t[#t+1] = Def.ActorFrame { + LoadFont("Common Normal") .. { + Text="WARNING!"; + InitCommand=cmd(y,-70;diffuse,Color.Red); + TweenOnCommand=cmd(diffusealpha,0;zoomx,2;zoomy,0;sleep,0.5;smooth,0.25;zoom,1;diffusealpha,1); + TweenOffCommand=cmd(linear,0.5;diffusealpha,0); + }; + LoadFont("Common Normal") .. { + Text="Please ensure that you do not overwrite any important keymappings, such as:\n&MENULEFT; LEFT &MENURIGHT; RIGHT &MENUUP; UP &MENUDOWN; DOWN &START; START &BACK; BACK or &SELECT; SELECT. Do not apply keymappings that you do not know the function of or unmap important keys!"; + InitCommand=cmd(y,10;wrapwidthpixels,SCREEN_WIDTH-48); + TweenOnCommand=cmd(diffusealpha,0;sleep,0.5125;linear,0.125;diffusealpha,1); + TweenOffCommand=cmd(linear,0.5;diffusealpha,0); + }; +}; + +return t \ No newline at end of file diff --git a/Themes/_fallback/metrics.ini b/Themes/_fallback/metrics.ini index bceb348f49..6f3ad1c887 100644 --- a/Themes/_fallback/metrics.ini +++ b/Themes/_fallback/metrics.ini @@ -2615,6 +2615,8 @@ Fallback="ScreenOptionsServiceChild" NextScreen="ScreenOptionsService" HelpText=Screen.String("HelpTextMapControllers") # +ScreenOnCommand=%function(self) MESSAGEMAN:Broadcast("KeyConfigRequestStall"); end; +# DevicesX=SCREEN_CENTER_X DevicesY=SCREEN_TOP+24 DevicesOnCommand=zoom,0.75;draworder,5;strokecolor,color("0,0,0,1") diff --git a/Themes/default/BGAnimations/ScreenGameplay go/default.lua b/Themes/default/BGAnimations/ScreenGameplay go/default.lua new file mode 100644 index 0000000000..fd86e61752 --- /dev/null +++ b/Themes/default/BGAnimations/ScreenGameplay go/default.lua @@ -0,0 +1,4 @@ +return LoadActor("go") .. { + InitCommand=cmd(Center;draworder,105); + StartTransitioningCommand=cmd(zoom,1.3;diffusealpha,0;bounceend,0.25;zoom,1;diffusealpha,1;linear,0.15;glow,BoostColor(Color("Blue"),1.75);decelerate,0.3;glow,1,1,1,0;sleep,1-0.45;linear,0.25;diffusealpha,0;); +}; \ No newline at end of file diff --git a/Themes/default/BGAnimations/ScreenGameplay go/go.png b/Themes/default/BGAnimations/ScreenGameplay go/go.png new file mode 100644 index 0000000000..6f6eba998d Binary files /dev/null and b/Themes/default/BGAnimations/ScreenGameplay go/go.png differ diff --git a/Themes/default/BGAnimations/ScreenGameplay underlay/danger.lua b/Themes/default/BGAnimations/ScreenGameplay underlay/danger.lua new file mode 100644 index 0000000000..df6ab760e1 --- /dev/null +++ b/Themes/default/BGAnimations/ScreenGameplay underlay/danger.lua @@ -0,0 +1,27 @@ +local players = GAMESTATE:GetHumanPlayers() + +local t = Def.ActorFrame {}; + +for pn=1,#players do + t[#t+1] = Def.ActorFrame { + InitCommand=function(self) + self:y(SCREEN_CENTER_Y) + self:x( + THEME:GetMetric( + Var "LoadingScreen", + "Player" .. ToEnumShortString(players[pn]) .. ToEnumShortString(GAMESTATE:GetCurrentStyle():GetStyleType()) .. "X" + ) + ) + end, + Def.Quad { + InitCommand=function(self) + (cmd('fadeleft,0.1;faderight,0.1;zoomtoheight,SCREEN_HEIGHT'))(self) + self:zoomtowidth( + Center1Player() and SCREEN_WIDTH-32 or SCREEN_CENTER_X-16 + ) + end + }; + }; +end + +return t \ No newline at end of file