Files
itgmania212121/stepmania/Themes/default/Scripts/Branches.lua
T
Glenn Maynard 6493010e49 Use a Lua script to select the evaluation screen, instead of a ScreenBranch.
This approach has several advantages.  It's more flexible; full conditionals
can be used.  It mixes with things like the "bGoingToPlayTheSameMusic"
logic in ScreenAttract much better; it gets the real real next screen, not
the branch.  It also mixes with screen preloading, such as used by ScreenStage.

(I don't know if grouping functions that are used like branches makes sense;
I'm not sure how Lua will be used in general, so this stuff might get reorganized
later.)
2005-01-20 00:37:33 +00:00

11 lines
504 B
Lua

function SelectEvaluationScreen()
if IsNetConnected() then return "ScreenNetEvaluation" end
Mode = PlayModeName()
if( Mode == "Regular" ) then return "ScreenEvaluationStage" end
if( Mode == "Nonstop" ) then return "ScreenEvaluationNonstop" end
if( Mode == "Oni" ) then return "ScreenEvaluationOni" end
if( Mode == "Endless" ) then return "ScreenEvaluationEndless" end
if( Mode == "Rave" ) then return "ScreenEvaluationRave" end
if( Mode == "Battle" ) then return "ScreenEvaluationBattle" end
end