Added debug menu option for resetting key mappings to default. Added sanity checking requirement to ScreenMapControllers.

This commit is contained in:
Kyzentun
2014-11-30 14:45:52 -07:00
parent e8c208395d
commit d3b5f5eb98
8 changed files with 171 additions and 4 deletions
@@ -0,0 +1,20 @@
return Def.ActorFrame{
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y),
Def.Quad{
InitCommand=cmd(zoomto,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,Color.Black;diffusealpha,0),
SetTextCommand=cmd(stoptweening;diffusealpha,1;linear,0.5;diffusealpha,0.8),
TweenOffCommand=cmd(stoptweening;linear,0.5;diffusealpha,0),
},
Def.ActorFrame{
Def.BitmapText{
Font="Common Normal",
InitCommand=cmd(y,10;wrapwidthpixels,SCREEN_WIDTH-48;diffusealpha,0),
SetTextCommand= function(self, param)
self:settext(param.Text)
self:playcommand("TweenOn")
end,
TweenOnCommand=cmd(stoptweening;diffusealpha,0;sleep,0.5125;linear,0.125;diffusealpha,1),
TweenOffCommand=cmd(stoptweening;linear,0.5;diffusealpha,0),
},
},
}