Fixed SSM StageDisplay to update when the song changes and SG StageDisplay to fetch curStage at the correct time to set its color.
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
local curScreen = Var "LoadingScreen";
|
local curScreen = Var "LoadingScreen";
|
||||||
local curStage = GAMESTATE:GetCurrentStage();
|
|
||||||
local curStageIndex = GAMESTATE:GetCurrentStageIndex() + 1;
|
local curStageIndex = GAMESTATE:GetCurrentStageIndex() + 1;
|
||||||
local playMode = GAMESTATE:GetPlayMode();
|
local playMode = GAMESTATE:GetPlayMode();
|
||||||
|
|
||||||
@@ -14,6 +13,7 @@ local t = Def.ActorFrame {
|
|||||||
CurrentTraiP1ChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentTraiP1ChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
CurrentTraiP2ChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentTraiP2ChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
SetCommand=function(self)
|
SetCommand=function(self)
|
||||||
|
local curStage = GAMESTATE:GetCurrentStage();
|
||||||
if GAMESTATE:IsCourseMode() then
|
if GAMESTATE:IsCourseMode() then
|
||||||
local stats = STATSMAN:GetCurStageStats()
|
local stats = STATSMAN:GetCurStageStats()
|
||||||
if not stats then
|
if not stats then
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
local curScreen = Var "LoadingScreen";
|
local curScreen = Var "LoadingScreen";
|
||||||
local curStage = GAMESTATE:GetCurrentStage();
|
|
||||||
local curStageIndex = GAMESTATE:GetCurrentStageIndex();
|
local curStageIndex = GAMESTATE:GetCurrentStageIndex();
|
||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
|
|
||||||
@@ -15,7 +14,9 @@ t[#t+1] = Def.ActorFrame {
|
|||||||
end
|
end
|
||||||
self:playcommand("Set")
|
self:playcommand("Set")
|
||||||
end;
|
end;
|
||||||
|
CurrentSongChangedMessageCommand= cmd(playcommand,"Set"),
|
||||||
SetCommand=function(self)
|
SetCommand=function(self)
|
||||||
|
local curStage = GAMESTATE:GetCurrentStage();
|
||||||
if GAMESTATE:GetCurrentCourse() then
|
if GAMESTATE:GetCurrentCourse() then
|
||||||
self:settext( curStageIndex+1 .. " / " .. GAMESTATE:GetCurrentCourse():GetEstimatedNumStages() );
|
self:settext( curStageIndex+1 .. " / " .. GAMESTATE:GetCurrentCourse():GetEstimatedNumStages() );
|
||||||
elseif GAMESTATE:IsEventMode() then
|
elseif GAMESTATE:IsEventMode() then
|
||||||
|
|||||||
Reference in New Issue
Block a user