From 2cac14ae3786e7ccc9d25facd513f82ee728535d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 27 Apr 2005 04:26:06 +0000 Subject: [PATCH] add ModeMenuAvailable --- stepmania/Themes/default/Scripts/Branches.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/Themes/default/Scripts/Branches.lua b/stepmania/Themes/default/Scripts/Branches.lua index a01f7328e8..b6ceefc134 100644 --- a/stepmania/Themes/default/Scripts/Branches.lua +++ b/stepmania/Themes/default/Scripts/Branches.lua @@ -103,6 +103,14 @@ function OptionsMenuAvailable() return true end +function ModeMenuAvailable() + local PickExtraStage = PREFSMAN:GetPreference( "PickExtraStage" ) + if (GAMESTATE:IsExtraStage() and not PickExtraStage) or GAMESTATE:IsExtraStage2() then + return false + end + return true +end + -- (c) 2005 Glenn Maynard, Chris Danford -- All rights reserved. --