From d6784ea278658268bf645e9b25374a038d14116c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 27 Feb 2007 01:05:29 +0000 Subject: [PATCH] lua --- stepmania/Themes/default/BGAnimations/_fade in normal.lua | 4 ++++ .../default/BGAnimations/_shared background fade in.lua | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 stepmania/Themes/default/BGAnimations/_fade in normal.lua create mode 100644 stepmania/Themes/default/BGAnimations/_shared background fade in.lua diff --git a/stepmania/Themes/default/BGAnimations/_fade in normal.lua b/stepmania/Themes/default/BGAnimations/_fade in normal.lua new file mode 100644 index 0000000000..bb49e9f421 --- /dev/null +++ b/stepmania/Themes/default/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/stepmania/Themes/default/BGAnimations/_shared background fade in.lua b/stepmania/Themes/default/BGAnimations/_shared background fade in.lua new file mode 100644 index 0000000000..c1ac737d88 --- /dev/null +++ b/stepmania/Themes/default/BGAnimations/_shared background fade in.lua @@ -0,0 +1,8 @@ +local children = { + LoadActor( "_shared background normal" ); + LoadActor( "_fade in normal" ) .. { + OnCommand=cmd(playcommand,"StartTransitioning"); + }; +}; + +return Def.ActorFrame { children=children };