Make routine mode use ScreenGameplayShared instead of ScreenGameplay

This commit is contained in:
AJ Kelly
2011-01-07 22:15:29 -06:00
parent b7707ad686
commit f5d89976ea
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -26,6 +26,11 @@ function SelectMusicOrCourse()
end
end
-- functions used for Routine mode
function IsRoutine()
return GAMESTATE:GetCurrentStyle() and GAMESTATE:GetCurrentStyle():GetStyleType() == "StyleType_TwoPlayersSharedSides";
end
Branch = {
Init = function()
if GAMESTATE:GetCoinMode() == 'CoinMode_Home' then
@@ -155,6 +160,12 @@ Branch = {
return "ScreenStageInformation"
end
end,
GameplayScreen = function()
if IsRoutine() then
return "ScreenGameplayShared"
end
return "ScreenGameplay"
end
AfterGameplay = function()
-- pick an evaluation screen based on settings.
if IsNetSMOnline() then
+1 -1
View File
@@ -1957,7 +1957,7 @@ Fallback="StepsDisplay"
Class="ScreenSplash"
Fallback="ScreenSplash"
#
NextScreen="ScreenGameplay"
NextScreen=Branch.GameplayScreen()
PrevScreen=Branch.BackOutOfStageInformation()
PrepareScreen="ScreenGameplay"
#