[MusicWheel, WheelBase] Added collapse sound.
This commit is contained in:
@@ -15,6 +15,7 @@ StepMania 5.0 alpha 2 | 20120???
|
||||
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]
|
||||
* [MusicWheel, WheelBase] Added collapse sound. [AJ]
|
||||
|
||||
StepMania 5.0 alpha 1a | 20120219
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Common invalid
|
||||
@@ -109,6 +109,7 @@ void MusicWheel::Load( RString sType )
|
||||
|
||||
m_soundChangeSort.Load( THEME->GetPathS(sType,"sort") );
|
||||
m_soundExpand.Load( THEME->GetPathS(sType,"expand"), true );
|
||||
m_soundCollapse.Load( THEME->GetPathS(sType,"collapse"), true );
|
||||
|
||||
// Update for SORT_MOST_PLAYED.
|
||||
SONGMAN->UpdatePopular();
|
||||
|
||||
+6
-2
@@ -283,11 +283,15 @@ bool WheelBase::Select() // return true if this selection can end the screen
|
||||
{
|
||||
RString sThisItemSectionName = m_CurWheelItemData[m_iSelection]->m_sText;
|
||||
if( m_sExpandedSectionName == sThisItemSectionName ) // already expanded
|
||||
{
|
||||
SetOpenSection( "" ); // collapse it
|
||||
m_soundCollapse.Play();
|
||||
}
|
||||
else // already collapsed
|
||||
{
|
||||
SetOpenSection( sThisItemSectionName ); // expand it
|
||||
|
||||
m_soundExpand.Play();
|
||||
m_soundExpand.Play();
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -99,6 +99,7 @@ protected:
|
||||
|
||||
RageSound m_soundChangeMusic;
|
||||
RageSound m_soundExpand;
|
||||
RageSound m_soundCollapse;
|
||||
RageSound m_soundLocked;
|
||||
|
||||
// bool WheelItemIsVisible(int n);
|
||||
|
||||
Reference in New Issue
Block a user