fix OptionsMenuAvailable

This commit is contained in:
Chris Danford
2005-04-23 01:41:42 +00:00
parent ff83372307
commit 13f9e532d1
3 changed files with 8 additions and 3 deletions
@@ -98,6 +98,11 @@ function GetGameplayNextScreen()
return "ScreenGameOver"
end
function OptionsMenuAvailable()
if GAMESTATE:IsExtraStage() or GAMESTATE:IsExtraStage2() then return "0" end
return "1"
end
-- (c) 2005 Glenn Maynard, Chris Danford
-- All rights reserved.
--
+1 -1
View File
@@ -675,7 +675,7 @@ NextOptionsScreen=@SelectFirstOptionsScreen()
DoRouletteOnMenuTimer=1
AlignMusicBeat=0
Codes=
OptionsMenuAvailable=@not GAMESTATE:IsExtraStage() and not GAMESTATE:IsExtraStage2()
OptionsMenuAvailable=@OptionsMenuAvailable()
[ScreenSelectCourse]
Class=ScreenSelectMusic
+2 -2
View File
@@ -1966,8 +1966,8 @@ public:
static int IsGoalComplete( T* p, lua_State *L ) { lua_pushboolean(L, p->IsGoalComplete((PlayerNumber)IArg(1)) ); return 1; }
static int PlayerIsUsingModifier( T* p, lua_State *L ) { lua_pushboolean(L, p->PlayerIsUsingModifier((PlayerNumber)IArg(1),SArg(2)) ); return 1; }
static int GetCourseSongIndex( T* p, lua_State *L ) { lua_pushnumber(L, p->GetCourseSongIndex() ); return 1; }
static int IsExtraStage( T* p, lua_State *L ) { lua_pushnumber(L, p->IsExtraStage() ); return 1; }
static int IsExtraStage2( T* p, lua_State *L ) { lua_pushnumber(L, p->IsExtraStage2() ); return 1; }
static int IsExtraStage( T* p, lua_State *L ) { lua_pushboolean(L, p->IsExtraStage() ); return 1; }
static int IsExtraStage2( T* p, lua_State *L ) { lua_pushboolean(L, p->IsExtraStage2() ); return 1; }
static void Register(lua_State *L)
{