add transitions to SM4 portKit.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
_menu in
|
||||
@@ -0,0 +1 @@
|
||||
_menu out
|
||||
@@ -0,0 +1 @@
|
||||
_fade in normal
|
||||
@@ -0,0 +1 @@
|
||||
_fade out normal
|
||||
@@ -0,0 +1,4 @@
|
||||
return Def.Quad {
|
||||
InitCommand=cmd(diffuse,color("#000000");stretchto,SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM);
|
||||
StartTransitioningCommand=cmd(diffusealpha,1;linear,0.3;diffusealpha,0);
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
local t = Def.Quad {
|
||||
InitCommand=cmd(diffuse,color("#000000");stretchto,SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM);
|
||||
StartTransitioningCommand=cmd(diffusealpha,0;linear,0.3;diffusealpha,1);
|
||||
};
|
||||
return t;
|
||||
@@ -0,0 +1,8 @@
|
||||
return Def.ActorFrame {
|
||||
LoadActor( THEME:GetPathS("", "_swoosh normal") ) .. {
|
||||
--StartTransitioningCommand=cmd(play);
|
||||
};
|
||||
LoadActor("_moveon") .. {
|
||||
OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;diffusealpha,1;linear,0.2;diffusealpha,0;zoomx,1;zoomy,0;);
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,8 @@
|
||||
return Def.ActorFrame {
|
||||
LoadActor( THEME:GetPathS("", "_swoosh normal") ) .. {
|
||||
--StartTransitioningCommand=cmd(play);
|
||||
};
|
||||
LoadActor("_moveon") .. {
|
||||
OnCommand=cmd(hibernate,0.1;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomx,1;zoomy,0;diffusealpha,0;linear,0.35;diffusealpha,1;zoom,1);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user