[ScreenSelectMusic] Added PlaySoundOnEnteringOptionsMenu metric (true/false).

This commit is contained in:
AJ Kelly
2012-03-01 21:28:15 -06:00
parent 8a827b3e9c
commit ce4366e605
4 changed files with 6 additions and 1 deletions
+1
View File
@@ -14,6 +14,7 @@ StepMania 5.0 alpha 2 | 20120???
* [MemoryCardManager] Disable Memory Cards by default. If you want to use them,
set MemoryCards=1 in Save/Preferences.ini (or Save/Static.ini). [AJ]
* [GameState] Set Premium to Premium_DoubleFor1Credit by default. [AJ]
* [ScreenSelectMusic] Added PlaySoundOnEnteringOptionsMenu metric. [AJ]
StepMania 5.0 alpha 1a | 20120219
--------------------------------------------------------------------------------
+1
View File
@@ -2014,6 +2014,7 @@ SelectMenuAvailable=false
ModeMenuAvailable=true
#
ShowOptionsMessageSeconds=1.5
PlaySoundOnEnteringOptionsMenu=true
#
ScreenModsCommand=setupmusicstagemods
#
+3 -1
View File
@@ -94,6 +94,7 @@ void ScreenSelectMusic::Init()
TWO_PART_TIMER_SECONDS.Load( m_sName, "TwoPartTimerSeconds" );
WRAP_CHANGE_STEPS.Load( m_sName, "WrapChangeSteps" );
NULL_SCORE_STRING.Load( m_sName, "NullScoreString" );
PLAY_SOUND_ON_ENTERING_OPTIONS_MENU.Load( m_sName, "PlaySoundOnEnteringOptionsMenu" );
// To allow changing steps with gamebuttons -DaisuMaster
CHANGE_STEPS_WITH_GAME_BUTTONS.Load( m_sName, "ChangeStepsWithGameButtons" );
CHANGE_GROUPS_WITH_GAME_BUTTONS.Load( m_sName, "ChangeGroupsWithGameButtons" );
@@ -437,7 +438,8 @@ void ScreenSelectMusic::Input( const InputEventPlus &input )
}
m_bGoToOptions = true;
m_soundStart.Play();
if( PLAY_SOUND_ON_ENTERING_OPTIONS_MENU )
m_soundStart.Play();
this->PlayCommand( "ShowEnteringOptions" );
// Re-queue SM_BeginFadingOut, since ShowEnteringOptions may have
+1
View File
@@ -97,6 +97,7 @@ protected:
ThemeMetric<bool> CHANGE_STEPS_WITH_GAME_BUTTONS;
ThemeMetric<bool> CHANGE_GROUPS_WITH_GAME_BUTTONS;
ThemeMetric<RString> NULL_SCORE_STRING;
ThemeMetric<bool> PLAY_SOUND_ON_ENTERING_OPTIONS_MENU;
bool CanChangeSong() const { return m_SelectionState == SelectionState_SelectingSong; }
bool CanChangeSteps() const { return TWO_PART_SELECTION ? m_SelectionState == SelectionState_SelectingSteps : m_SelectionState == SelectionState_SelectingSong; }