Make routine mode use ScreenGameplayShared instead of ScreenGameplay
This commit is contained in:
@@ -26,6 +26,11 @@ function SelectMusicOrCourse()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- functions used for Routine mode
|
||||||
|
function IsRoutine()
|
||||||
|
return GAMESTATE:GetCurrentStyle() and GAMESTATE:GetCurrentStyle():GetStyleType() == "StyleType_TwoPlayersSharedSides";
|
||||||
|
end
|
||||||
|
|
||||||
Branch = {
|
Branch = {
|
||||||
Init = function()
|
Init = function()
|
||||||
if GAMESTATE:GetCoinMode() == 'CoinMode_Home' then
|
if GAMESTATE:GetCoinMode() == 'CoinMode_Home' then
|
||||||
@@ -155,6 +160,12 @@ Branch = {
|
|||||||
return "ScreenStageInformation"
|
return "ScreenStageInformation"
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
GameplayScreen = function()
|
||||||
|
if IsRoutine() then
|
||||||
|
return "ScreenGameplayShared"
|
||||||
|
end
|
||||||
|
return "ScreenGameplay"
|
||||||
|
end
|
||||||
AfterGameplay = function()
|
AfterGameplay = function()
|
||||||
-- pick an evaluation screen based on settings.
|
-- pick an evaluation screen based on settings.
|
||||||
if IsNetSMOnline() then
|
if IsNetSMOnline() then
|
||||||
|
|||||||
@@ -1957,7 +1957,7 @@ Fallback="StepsDisplay"
|
|||||||
Class="ScreenSplash"
|
Class="ScreenSplash"
|
||||||
Fallback="ScreenSplash"
|
Fallback="ScreenSplash"
|
||||||
#
|
#
|
||||||
NextScreen="ScreenGameplay"
|
NextScreen=Branch.GameplayScreen()
|
||||||
PrevScreen=Branch.BackOutOfStageInformation()
|
PrevScreen=Branch.BackOutOfStageInformation()
|
||||||
PrepareScreen="ScreenGameplay"
|
PrepareScreen="ScreenGameplay"
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user