From cd66a9da65f176f92e2b2802fa5493907dda0aed Mon Sep 17 00:00:00 2001 From: Jonathan Payne Date: Sat, 24 Mar 2012 13:43:38 -0700 Subject: [PATCH] forgot duped stagedisplay. --- .../Graphics/ScreenGameplay StageDisplay.lua | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Themes/default/Graphics/ScreenGameplay StageDisplay.lua diff --git a/Themes/default/Graphics/ScreenGameplay StageDisplay.lua b/Themes/default/Graphics/ScreenGameplay StageDisplay.lua new file mode 100644 index 0000000000..5c09b4d0a8 --- /dev/null +++ b/Themes/default/Graphics/ScreenGameplay StageDisplay.lua @@ -0,0 +1,30 @@ +local curScreen = Var "LoadingScreen"; +local curStage = GAMESTATE:GetCurrentStage(); +local curStageIndex = GAMESTATE:GetCurrentStageIndex(); + +local t = Def.ActorFrame {}; + +t[#t+1] = Def.ActorFrame { + LoadActor(THEME:GetPathB("_frame","3x3"),"rounded black",64,16); + LoadFont("Common Normal") .. { + InitCommand=cmd(y,-1;shadowlength,1;playcommand,"Set"); + SetCommand=function(self) + if GAMESTATE:GetCurrentCourse() then + self:settext( GAMESTATE:GetCurrentStageIndex()+1 .. " / " .. GAMESTATE:GetCurrentCourse():GetEstimatedNumStages() ); + elseif GAMESTATE:IsEventMode() then + self:settextf("Stage %s", curStageIndex+1); + else + if THEME:GetMetric(curScreen,"StageDisplayUseShortString") then + self:settextf("%s", ToEnumShortString(curStage)); + else + self:settextf("%s Stage", ToEnumShortString(curStage)); + end; + end; + -- + self:zoom(0.675); + self:diffuse(StageToColor(curStage)); + self:diffusetopedge(ColorLightTone(StageToColor(curStage))); + end; + }; +}; +return t \ No newline at end of file