forgot some things, display dumb user warning on MapControllers.
This commit is contained in:
@@ -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
|
||||||
@@ -2615,6 +2615,8 @@ Fallback="ScreenOptionsServiceChild"
|
|||||||
NextScreen="ScreenOptionsService"
|
NextScreen="ScreenOptionsService"
|
||||||
HelpText=Screen.String("HelpTextMapControllers")
|
HelpText=Screen.String("HelpTextMapControllers")
|
||||||
#
|
#
|
||||||
|
ScreenOnCommand=%function(self) MESSAGEMAN:Broadcast("KeyConfigRequestStall"); end;
|
||||||
|
#
|
||||||
DevicesX=SCREEN_CENTER_X
|
DevicesX=SCREEN_CENTER_X
|
||||||
DevicesY=SCREEN_TOP+24
|
DevicesY=SCREEN_TOP+24
|
||||||
DevicesOnCommand=zoom,0.75;draworder,5;strokecolor,color("0,0,0,1")
|
DevicesOnCommand=zoom,0.75;draworder,5;strokecolor,color("0,0,0,1")
|
||||||
|
|||||||
@@ -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;);
|
||||||
|
};
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -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
|
||||||
Reference in New Issue
Block a user