Skip to content

Commit

Permalink
Broke the EvaluationNextScreen() function up into 2 seperate ones so …
Browse files Browse the repository at this point in the history
…that we could actually get to the Extra Stage legitimately instead of just forcing it on every time for testing.
  • Loading branch information
gabemarchan committed Jul 18, 2017
1 parent cdec67a commit e1fc7db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions Themes/itg3/Scripts/Branches.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,22 @@ function GetUpdateScreen()
return "ScreenArcadePatch"
end

function EvaluationNextScreen()
function EvaluationNextScreenExit()
Trace( "GetGameplayNextScreen: " )
Trace( " AllFailed = "..tostring(AllFailed()) )
Trace( " IsEventMode = "..tostring(GAMESTATE:IsEventMode()) )
Trace( " IsFinalStage = "..tostring(IsFinalStage()) )
if GAMESTATE:IsEventMode() then return NewSongScreen() end
if AllFailed() then return "ScreenNameEntryTraditional" end
if AllFailed() or IsFinalStage() then return "ScreenNameEntryTraditional" end
return NewSongScreen();
end

function EvaluationNextScreen()
if( IsNetSMOnline() ) then return "ScreenNetRoom" end
if( IsNetConnected() ) then return "ScreenNetSelectMusic" end
return NewSongScreen()
end

function ScreenCleaning()
if GetCleanScreen() == true then
if Hour() >= GetCleanStartTime() and Hour() < GetCleanEndTime() then
Expand Down
6 changes: 3 additions & 3 deletions Themes/itg3/metrics.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1054,9 +1054,9 @@ TimerOffCommand=accelerate,.5;addy,-200
OverlayY=0

[ScreenEvaluationStage]
EndScreen=@EvaluationNextScreen()
EndScreen=@EvaluationNextScreenExit()
NextScreen=@EvaluationNextScreen()
FailedScreen=@EvaluationNextScreen()
FailedScreen=@EvaluationNextScreenExit()
Class=ScreenEvaluation
Fallback=ScreenEvaluation
ColorizeLifeGraph=1
Expand Down Expand Up @@ -1465,7 +1465,7 @@ MaxComboNumberP2OnCommand=hidden,1

[ScreenEvaluationRave]
Fallback=ScreenEvaluationStage
FailedScreen=@EvaluationNextScreen()
FailedScreen=@EvaluationNextScreenExit()
LargeBannerFrameOnCommand=diffusealpha,0;sleep,3;linear,0.5;diffusealpha,1
LargeBannerFrameOffCommand=stoptweening;linear,0.2;diffusealpha,0
ShowBannerArea=1
Expand Down

0 comments on commit e1fc7db

Please sign in to comment.