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.)
11 lines
504 B
Lua
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
|