add ScreenSelectMusic::OPTIONS_MENU_AVAILABLE
This commit is contained in:
@@ -675,6 +675,7 @@ NextOptionsScreen=@SelectFirstOptionsScreen()
|
|||||||
DoRouletteOnMenuTimer=1
|
DoRouletteOnMenuTimer=1
|
||||||
AlignMusicBeat=0
|
AlignMusicBeat=0
|
||||||
Codes=
|
Codes=
|
||||||
|
OptionsMenuAvailable=@not GAMESTATE:IsExtraStage() and not GAMESTATE:IsExtraStage2()
|
||||||
|
|
||||||
[ScreenSelectCourse]
|
[ScreenSelectCourse]
|
||||||
Class=ScreenSelectMusic
|
Class=ScreenSelectMusic
|
||||||
|
|||||||
@@ -1966,6 +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 IsExtraStage2( T* p, lua_State *L ) { lua_pushnumber(L, p->IsExtraStage2() ); return 1; }
|
||||||
|
|
||||||
static void Register(lua_State *L)
|
static void Register(lua_State *L)
|
||||||
{
|
{
|
||||||
@@ -1992,6 +1994,8 @@ public:
|
|||||||
ADD_METHOD( IsGoalComplete )
|
ADD_METHOD( IsGoalComplete )
|
||||||
ADD_METHOD( PlayerIsUsingModifier )
|
ADD_METHOD( PlayerIsUsingModifier )
|
||||||
ADD_METHOD( GetCourseSongIndex )
|
ADD_METHOD( GetCourseSongIndex )
|
||||||
|
ADD_METHOD( IsExtraStage )
|
||||||
|
ADD_METHOD( IsExtraStage2 )
|
||||||
|
|
||||||
Luna<T>::Register( L );
|
Luna<T>::Register( L );
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ ScreenSelectMusic::ScreenSelectMusic( CString sClassName ) : ScreenWithMenuEleme
|
|||||||
DO_ROULETTE_ON_MENU_TIMER( m_sName, "DoRouletteOnMenuTimer" ),
|
DO_ROULETTE_ON_MENU_TIMER( m_sName, "DoRouletteOnMenuTimer" ),
|
||||||
ALIGN_MUSIC_BEATS( m_sName, "AlignMusicBeat" ),
|
ALIGN_MUSIC_BEATS( m_sName, "AlignMusicBeat" ),
|
||||||
CODES( m_sName, "Codes" ),
|
CODES( m_sName, "Codes" ),
|
||||||
MUSIC_WHEEL_TYPE( m_sName, "MusicWheelType" )
|
MUSIC_WHEEL_TYPE( m_sName, "MusicWheelType" ),
|
||||||
|
OPTIONS_MENU_AVAILABLE( m_sName, "OptionsMenuAvailable" )
|
||||||
{
|
{
|
||||||
LOG->Trace( "ScreenSelectMusic::ScreenSelectMusic()" );
|
LOG->Trace( "ScreenSelectMusic::ScreenSelectMusic()" );
|
||||||
|
|
||||||
@@ -806,8 +807,7 @@ void ScreenSelectMusic::Input( const DeviceInput& DeviceI, InputEventType type,
|
|||||||
type != IET_RELEASE &&
|
type != IET_RELEASE &&
|
||||||
type != IET_LEVEL_CHANGED &&
|
type != IET_LEVEL_CHANGED &&
|
||||||
IsTransitioning() &&
|
IsTransitioning() &&
|
||||||
!GAMESTATE->IsExtraStage() &&
|
OPTIONS_MENU_AVAILABLE.GetValue() )
|
||||||
!GAMESTATE->IsExtraStage2() )
|
|
||||||
{
|
{
|
||||||
if(m_bGoToOptions) return; /* got it already */
|
if(m_bGoToOptions) return; /* got it already */
|
||||||
if(!m_bAllowOptionsMenu) return; /* not allowed */
|
if(!m_bAllowOptionsMenu) return; /* not allowed */
|
||||||
@@ -1209,7 +1209,7 @@ void ScreenSelectMusic::MenuStart( PlayerNumber pn )
|
|||||||
TweenOffScreen();
|
TweenOffScreen();
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
|
|
||||||
if( !GAMESTATE->IsExtraStage() && !GAMESTATE->IsExtraStage2() )
|
if( OPTIONS_MENU_AVAILABLE )
|
||||||
{
|
{
|
||||||
// float fShowSeconds = m_Out.GetLengthSeconds();
|
// float fShowSeconds = m_Out.GetLengthSeconds();
|
||||||
|
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ protected:
|
|||||||
ThemeMetric<bool> ALIGN_MUSIC_BEATS;
|
ThemeMetric<bool> ALIGN_MUSIC_BEATS;
|
||||||
ThemeMetric<CString> CODES;
|
ThemeMetric<CString> CODES;
|
||||||
ThemeMetric<CString> MUSIC_WHEEL_TYPE;
|
ThemeMetric<CString> MUSIC_WHEEL_TYPE;
|
||||||
|
ThemeMetric<bool> OPTIONS_MENU_AVAILABLE;
|
||||||
|
|
||||||
CString m_sSectionMusicPath;
|
CString m_sSectionMusicPath;
|
||||||
CString m_sSortMusicPath;
|
CString m_sSortMusicPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user