fix OptionsMenuAvailable
This commit is contained in:
@@ -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.
|
||||
--
|
||||
|
||||
@@ -675,7 +675,7 @@ NextOptionsScreen=@SelectFirstOptionsScreen()
|
||||
DoRouletteOnMenuTimer=1
|
||||
AlignMusicBeat=0
|
||||
Codes=
|
||||
OptionsMenuAvailable=@not GAMESTATE:IsExtraStage() and not GAMESTATE:IsExtraStage2()
|
||||
OptionsMenuAvailable=@OptionsMenuAvailable()
|
||||
|
||||
[ScreenSelectCourse]
|
||||
Class=ScreenSelectMusic
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user