Add some screen transitions

This commit is contained in:
Rob Campbell
2009-01-05 05:54:37 +00:00
parent 786c340c47
commit 503999eedc
19 changed files with 64 additions and 14 deletions
@@ -14,20 +14,30 @@ local max_stages = PREFSMAN:GetPreference( "SongsPerPlay" );
local t = Def.ActorFrame {
LoadActor( "preview " .. st ) .. {
InitCommand=cmd(x,SCREEN_CENTER_X-150;y,SCREEN_CENTER_Y+190;vertalign,bottom);
OnCommand=cmd(cropbottom,1;fadebottom,1;linear,.2;cropbottom,0;fadebottom,0);
OffCommand=cmd(croptop,0;fadetop,0;linear,.2;croptop,1;fadetop,1);
GainFocusCommand=cmd(visible,true);
LoseFocusCommand=cmd(visible,false);
};
Def.ActorFrame {
InitCommand=cmd(x,SCREEN_CENTER_X+156;y,SCREEN_CENTER_Y+52;);
OnCommand=cmd(addy,280;decelerate,.22;addy,-280);
OffCommand=cmd(accelerate,.22;addy,280);
GainFocusCommand=cmd(visible,true);
LoseFocusCommand=cmd(visible,false);
LoadActor( "card frame " .. st ) .. {
};
LoadActor( "card frame " .. st );
LoadFont( "_sf square head 26px" ) .. {
InitCommand=cmd(y,-51;settext,string.upper(gc:GetText());maxwidth,500;shadowlength,0;);
};
LoadFont( "_venacti bold 15px" ) .. {
InitCommand=cmd(horizalign,left;x,-12;y,-2;settext,"EACH PLAYER USES\nONE CONTROLLER";maxwidth,300;shadowlength,0;diffuse,color("#000000"););
InitCommand=cmd(horizalign,left;x,-12;y,-2;maxwidth,300;shadowlength,0;diffuse,color("#000000"););
BeginCommand=function(self)
if st == "StyleType_OnePlayerTwoSides" then
self:settext("ONE PLAYER USES\nTWO CONTROLLERS");
else
self:settext("EACH PLAYER USES\nONE CONTROLLER");
end
end;
};
LoadFont( "_venacti bold 15px" ) .. {
InitCommand=cmd(horizalign,right;x,98;y,42;settext,"MAX STAGE/";maxwidth,300;shadowlength,0;diffuse,color("#32d545"););
@@ -41,6 +51,8 @@ local t = Def.ActorFrame {
};
Def.ActorFrame {
InitCommand=cmd(x,SCREEN_CENTER_X+20+gc:GetIndex()*106;y,SCREEN_CENTER_Y-90;);
OnCommand=cmd(runcommandsonleaves,cmd(diffusealpha,0;sleep,gc:GetIndex()/12;linear,.16;diffusealpha,1;););
OffCommand=cmd(runcommandsonleaves,cmd(diffusealpha,1;sleep,gc:GetIndex()/12;linear,.16;diffusealpha,0;););
LoadActor( "icon frame focus" ) .. {
GainFocusCommand=cmd(visible,true);
LoseFocusCommand=cmd(visible,false);