From 4a82cca0fd17c720dce66ebe7f8cbebacf4bf2e4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 18 May 2007 01:09:15 +0000 Subject: [PATCH] lua --- .../Themes/default/BGAnimations/Screen cancel.lua | 8 ++++++++ .../default/BGAnimations/ScreenTestInput overlay.lua | 11 +++++++++++ .../default/BGAnimations/ScreenTextEntry underlay.lua | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 stepmania/Themes/default/BGAnimations/Screen cancel.lua create mode 100644 stepmania/Themes/default/BGAnimations/ScreenTestInput overlay.lua create mode 100644 stepmania/Themes/default/BGAnimations/ScreenTextEntry underlay.lua diff --git a/stepmania/Themes/default/BGAnimations/Screen cancel.lua b/stepmania/Themes/default/BGAnimations/Screen cancel.lua new file mode 100644 index 0000000000..7e20ef8cf1 --- /dev/null +++ b/stepmania/Themes/default/BGAnimations/Screen cancel.lua @@ -0,0 +1,8 @@ +return Def.ActorFrame { + LoadActor( THEME:GetPathS("", "_cancel") ) .. { + StartTransitioningCommand=cmd(play); + }; + Def.Quad { + OnCommand=cmd(finishtweening;diffuse,color("#000000");stretchto,SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM;cropleft,1;fadeleft,.5;linear,0.5;cropleft,-0.5); + }; +}; diff --git a/stepmania/Themes/default/BGAnimations/ScreenTestInput overlay.lua b/stepmania/Themes/default/BGAnimations/ScreenTestInput overlay.lua new file mode 100644 index 0000000000..11df5c0fba --- /dev/null +++ b/stepmania/Themes/default/BGAnimations/ScreenTestInput overlay.lua @@ -0,0 +1,11 @@ +return Def.ActorFrame { + Def.DeviceList { + Font="Common normal"; + InitCommand=cmd(x,SCREEN_LEFT+20;y,SCREEN_TOP+80;zoom,0.7;horizalign,left); + }; + + Def.InputList { + Font="Common normal"; + InitCommand=cmd(x,SCREEN_CENTER_X-250;y,SCREEN_CENTER_Y;zoom,0.7;horizalign,left;vertspacing,8); + }; +}; diff --git a/stepmania/Themes/default/BGAnimations/ScreenTextEntry underlay.lua b/stepmania/Themes/default/BGAnimations/ScreenTextEntry underlay.lua new file mode 100644 index 0000000000..3768026a7c --- /dev/null +++ b/stepmania/Themes/default/BGAnimations/ScreenTextEntry underlay.lua @@ -0,0 +1,3 @@ +return Def.Quad { + InitCommand=cmd(diffuse,0.5,0.5,1,0.7;zoomtowidth,300;zoomtoheight,24;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y+20); +};