From 9045d043565f3d070f672cabf61e519f18ffb9c5 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sun, 21 Feb 2010 23:33:59 -0600 Subject: [PATCH] add transitions to SM4 portKit. --- .../BGAnimations/ScreenWithMenuElements in.redir | 1 + .../BGAnimations/ScreenWithMenuElements out.redir | 1 + .../BGAnimations/ScreenWithMenuElementsBlank in.redir | 1 + .../BGAnimations/ScreenWithMenuElementsBlank out.redir | 1 + Themes/_portKit-sm4/BGAnimations/_fade in normal.lua | 4 ++++ Themes/_portKit-sm4/BGAnimations/_fade out normal.lua | 5 +++++ Themes/_portKit-sm4/BGAnimations/_menu in.lua | 8 ++++++++ Themes/_portKit-sm4/BGAnimations/_menu out.lua | 8 ++++++++ 8 files changed, 29 insertions(+) create mode 100644 Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElements in.redir create mode 100644 Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElements out.redir create mode 100644 Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElementsBlank in.redir create mode 100644 Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElementsBlank out.redir create mode 100644 Themes/_portKit-sm4/BGAnimations/_fade in normal.lua create mode 100644 Themes/_portKit-sm4/BGAnimations/_fade out normal.lua create mode 100644 Themes/_portKit-sm4/BGAnimations/_menu in.lua create mode 100644 Themes/_portKit-sm4/BGAnimations/_menu out.lua diff --git a/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElements in.redir b/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElements in.redir new file mode 100644 index 0000000000..20f5042bcb --- /dev/null +++ b/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElements in.redir @@ -0,0 +1 @@ +_menu in \ No newline at end of file diff --git a/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElements out.redir b/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElements out.redir new file mode 100644 index 0000000000..dbd8790a88 --- /dev/null +++ b/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElements out.redir @@ -0,0 +1 @@ +_menu out \ No newline at end of file diff --git a/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElementsBlank in.redir b/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElementsBlank in.redir new file mode 100644 index 0000000000..7c2c062086 --- /dev/null +++ b/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElementsBlank in.redir @@ -0,0 +1 @@ +_fade in normal \ No newline at end of file diff --git a/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElementsBlank out.redir b/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElementsBlank out.redir new file mode 100644 index 0000000000..30cdcd3856 --- /dev/null +++ b/Themes/_portKit-sm4/BGAnimations/ScreenWithMenuElementsBlank out.redir @@ -0,0 +1 @@ +_fade out normal \ No newline at end of file diff --git a/Themes/_portKit-sm4/BGAnimations/_fade in normal.lua b/Themes/_portKit-sm4/BGAnimations/_fade in normal.lua new file mode 100644 index 0000000000..32d9116dc7 --- /dev/null +++ b/Themes/_portKit-sm4/BGAnimations/_fade in normal.lua @@ -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); +}; diff --git a/Themes/_portKit-sm4/BGAnimations/_fade out normal.lua b/Themes/_portKit-sm4/BGAnimations/_fade out normal.lua new file mode 100644 index 0000000000..78ef5a035f --- /dev/null +++ b/Themes/_portKit-sm4/BGAnimations/_fade out normal.lua @@ -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; diff --git a/Themes/_portKit-sm4/BGAnimations/_menu in.lua b/Themes/_portKit-sm4/BGAnimations/_menu in.lua new file mode 100644 index 0000000000..90e8da4bfe --- /dev/null +++ b/Themes/_portKit-sm4/BGAnimations/_menu in.lua @@ -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;); + }; +}; diff --git a/Themes/_portKit-sm4/BGAnimations/_menu out.lua b/Themes/_portKit-sm4/BGAnimations/_menu out.lua new file mode 100644 index 0000000000..077d4c9bc0 --- /dev/null +++ b/Themes/_portKit-sm4/BGAnimations/_menu out.lua @@ -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); + }; +};