fix OptionsMenuAvailable
This commit is contained in:
@@ -98,6 +98,11 @@ function GetGameplayNextScreen()
|
|||||||
return "ScreenGameOver"
|
return "ScreenGameOver"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function OptionsMenuAvailable()
|
||||||
|
if GAMESTATE:IsExtraStage() or GAMESTATE:IsExtraStage2() then return "0" end
|
||||||
|
return "1"
|
||||||
|
end
|
||||||
|
|
||||||
-- (c) 2005 Glenn Maynard, Chris Danford
|
-- (c) 2005 Glenn Maynard, Chris Danford
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
|
|||||||
@@ -675,7 +675,7 @@ NextOptionsScreen=@SelectFirstOptionsScreen()
|
|||||||
DoRouletteOnMenuTimer=1
|
DoRouletteOnMenuTimer=1
|
||||||
AlignMusicBeat=0
|
AlignMusicBeat=0
|
||||||
Codes=
|
Codes=
|
||||||
OptionsMenuAvailable=@not GAMESTATE:IsExtraStage() and not GAMESTATE:IsExtraStage2()
|
OptionsMenuAvailable=@OptionsMenuAvailable()
|
||||||
|
|
||||||
[ScreenSelectCourse]
|
[ScreenSelectCourse]
|
||||||
Class=ScreenSelectMusic
|
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 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 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 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 IsExtraStage( T* p, lua_State *L ) { lua_pushboolean(L, p->IsExtraStage() ); return 1; }
|
||||||
static int IsExtraStage2( T* p, lua_State *L ) { lua_pushnumber(L, p->IsExtraStage2() ); return 1; }
|
static int IsExtraStage2( T* p, lua_State *L ) { lua_pushboolean(L, p->IsExtraStage2() ); return 1; }
|
||||||
|
|
||||||
static void Register(lua_State *L)
|
static void Register(lua_State *L)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user