Don't allow Options on ExtraStage (might be fun later)
This commit is contained in:
@@ -26,6 +26,19 @@ function GetExtraColorThreshold()
|
||||
return Modes[CurGameName()]
|
||||
end
|
||||
|
||||
-- AllowOptionsMenu()
|
||||
-- [en] returns if you are able to select options
|
||||
-- on ScreenSelectMusic.
|
||||
function AllowOptionsMenu()
|
||||
if GAMESTATE:IsAnExtraStage() then
|
||||
return false
|
||||
elseif GAMESTATE:GetPlayMode() == "PlayMode_Oni" then
|
||||
return false
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
-- GameCompatibleModes:
|
||||
-- [en] returns possible modes for ScreenSelectPlayMode
|
||||
function GameCompatibleModes()
|
||||
|
||||
@@ -2009,7 +2009,7 @@ OptionsListTimeout=0.25
|
||||
#
|
||||
UsePlayerSelectMenu=false
|
||||
SelectMenuScreenName="ScreenPlayerOptions"
|
||||
OptionsMenuAvailable=GAMESTATE:GetPlayMode() ~= "PlayMode_Oni"
|
||||
OptionsMenuAvailable=AllowOptionsMenu()
|
||||
SelectMenuAvailable=false
|
||||
ModeMenuAvailable=true
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user