From 971129668080de5598f16fe61ddec3f02d72263a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 4 May 2007 19:02:21 +0000 Subject: [PATCH] lua --- ...creenSelectProfile scroll choiceCreate.lua | 10 +++++++ .../ScreenSelectProfile scroll choiceExit.lua | 11 ++++++++ ...reenSelectProfile scroll choiceProfile.lua | 27 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceCreate.lua create mode 100644 stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceExit.lua create mode 100644 stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceProfile.lua diff --git a/stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceCreate.lua b/stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceCreate.lua new file mode 100644 index 0000000000..c2793697a7 --- /dev/null +++ b/stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceCreate.lua @@ -0,0 +1,10 @@ +return LoadFont("Common normal") .. { + Text="Create New"; + OnCommand=cmd(diffusealpha,0;linear,0.3;diffusealpha,1); + OffCommand=cmd(linear,0.3;diffusealpha,0); + InitCommand=cmd(halign,0;shadowlength,2): + GainFocusCommand=cmd(stoptweening;diffuseshift;effectperiod,0.5;effectcolor1,1,0.5,0.5,1;effectcolor2,0.5,0.25,0.25,1;linear,0;Zoom,1.0); + LoseFocusCommand=cmd(stoptweening;stopeffect;linear,0;zoom,0.9); + EnabledCommand=cmd(); + DisabledCommand=cmd(diffuse,0.5,0.5,0.5,1); +}; diff --git a/stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceExit.lua b/stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceExit.lua new file mode 100644 index 0000000000..9524da6e38 --- /dev/null +++ b/stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceExit.lua @@ -0,0 +1,11 @@ +return LoadFont("Common normal") .. { + Text="Exit"; + OnCommand=cmd(diffusealpha,0;linear,0.3;diffusealpha,1); + OffCommand=cmd(linear,0.3;diffusealpha,0); + InitCommand=cmd(halign,0;shadowlength,2): + GainFocusCommand=cmd(stoptweening;diffuseshift;effectperiod,0.5;effectcolor1,1,0.5,0.5,1;effectcolor2,0.5,0.25,0.25,1;linear,0;Zoom,1.0); + LoseFocusCommand=cmd(stoptweening;stopeffect;linear,0;zoom,0.9); + EnabledCommand=cmd(); + DisabledCommand=cmd(diffuse,0.5,0.5,0.5,1); +}; + diff --git a/stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceProfile.lua b/stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceProfile.lua new file mode 100644 index 0000000000..a9a1ce35a7 --- /dev/null +++ b/stepmania/Themes/default/Graphics/ScreenSelectProfile scroll choiceProfile.lua @@ -0,0 +1,27 @@ +return Def.ActorFrame { + GainFocusCommand=cmd(); + LoseFocusCommand=cmd(); + LoadActor( PROFILEMAN:GetLocalProfile( GAMESTATE:Env().ThisGameCommand:GetProfileID() ):GetCharacter():GetIconPath() ) .. { + InitCommand=cmd(x,20); + }; + LoadFont( "Common normal" ) .. { + Text=PROFILEMAN:GetLocalProfile( GAMESTATE:Env().ThisGameCommand:GetProfileID() ):GetDisplayName(); + OnCommand=cmd(diffusealpha,0;linear,0.3;diffusealpha,1): + OffCommand=cmd(linear,0.3;diffusealpha,0); + InitCommand=cmd(halign,0;shadowlength,2;x,50); + GainFocusCommand=cmd(stoptweening;diffuseshift;effectperiod,0.5;effectcolor1,1,0.5,0.5,1;effectcolor2,0.5,0.25,0.25,1;linear,0;zoom,1.0); + LoseFocusCommand="stoptweening;stopeffect;linear,0;zoom,0.9" + EnabledCommand="" + DisabledCommand="diffuse,0.5,0.5,0.5,1" + }; + LoadFont( "Common normal" ) .. { + Text="PROFILEMAN:GetLocalProfile( GAMESTATE:Env().ThisGameCommand:GetProfileID() ):GetNumTotalSongsPlayed() .. ' song(s) played'" + OnCommand=cmd(diffusealpha,0;linear,0.3;diffusealpha,1); + OffCommand=cmd(linear,0.3;diffusealpha,0); + InitCommand=cmd(halign,0;shadowlength,2;x,280); + GainFocusCommand=cmd(stoptweening;diffuseshift;effectperiod,0.5;effectcolor1,1,0.5,0.5,1;effectcolor2,0.5,0.25,0.25,1;linear,0;zoom,1.0); + LoseFocusCommand=cmd(stoptweening;stopeffect;linear,0;zoom,0.9); + EnabledCommand=cmd(); + DisabledCommand=cmd(diffuse,0.5,0.5,0.5,1); + }; +};