fix eval showing one stage later than expected
This commit is contained in:
@@ -6,12 +6,21 @@ local t = Def.ActorFrame {};
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
LoadActor(THEME:GetPathB("_frame","3x3"),"rounded black",64,12);
|
||||
LoadFont("Common Normal") .. {
|
||||
InitCommand=cmd(y,-1;shadowlength,1;playcommand,"Set");
|
||||
InitCommand=cmd(y,-1;shadowlength,1;);
|
||||
BeginCommand=function(self)
|
||||
local top = SCREENMAN:GetTopScreen()
|
||||
if top then
|
||||
if not string.find(top:GetName(),"ScreenEvaluation") then
|
||||
curStageIndex = curStageIndex + 1
|
||||
end
|
||||
end
|
||||
self:playcommand("Set")
|
||||
end;
|
||||
SetCommand=function(self)
|
||||
if GAMESTATE:GetCurrentCourse() then
|
||||
self:settext( GAMESTATE:GetCurrentStageIndex()+1 .. " / " .. GAMESTATE:GetCurrentCourse():GetEstimatedNumStages() );
|
||||
self:settext( curStageIndex+1 .. " / " .. GAMESTATE:GetCurrentCourse():GetEstimatedNumStages() );
|
||||
elseif GAMESTATE:IsEventMode() then
|
||||
self:settextf("Stage %s", curStageIndex+1);
|
||||
self:settextf("Stage %s", curStageIndex);
|
||||
else
|
||||
if THEME:GetMetric(curScreen,"StageDisplayUseShortString") then
|
||||
self:settextf("%s", ToEnumShortString(curStage));
|
||||
|
||||
Reference in New Issue
Block a user