add multiselect toggle sounds
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
ScreenSelectMusic difficulty harder
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
ScreenSelectMusic difficulty harder
|
||||||
@@ -93,6 +93,8 @@ ScreenOptions::ScreenOptions( CString sClassName ) : Screen(sClassName)
|
|||||||
m_SoundNextRow.Load( THEME->GetPathToS("ScreenOptions next"), true );
|
m_SoundNextRow.Load( THEME->GetPathToS("ScreenOptions next"), true );
|
||||||
m_SoundPrevRow.Load( THEME->GetPathToS("ScreenOptions prev"), true );
|
m_SoundPrevRow.Load( THEME->GetPathToS("ScreenOptions prev"), true );
|
||||||
m_SoundStart.Load( THEME->GetPathToS("Common start") );
|
m_SoundStart.Load( THEME->GetPathToS("Common start") );
|
||||||
|
m_SoundToggleOn.Load( THEME->GetPathToS("ScreenOptions toggle on") );
|
||||||
|
m_SoundToggleOff.Load( THEME->GetPathToS("ScreenOptions toggle off") );
|
||||||
|
|
||||||
m_Menu.Load( sClassName );
|
m_Menu.Load( sClassName );
|
||||||
this->AddChild( &m_Menu );
|
this->AddChild( &m_Menu );
|
||||||
@@ -1107,6 +1109,10 @@ void ScreenOptions::MenuStart( PlayerNumber pn, const InputEventType type )
|
|||||||
{
|
{
|
||||||
int iChoiceInRow = row.m_iChoiceWithFocus[pn];
|
int iChoiceInRow = row.m_iChoiceWithFocus[pn];
|
||||||
row.m_vbSelected[pn][iChoiceInRow] ^= true;
|
row.m_vbSelected[pn][iChoiceInRow] ^= true;
|
||||||
|
if( row.m_vbSelected[pn][iChoiceInRow] )
|
||||||
|
m_SoundToggleOn.Play();
|
||||||
|
else
|
||||||
|
m_SoundToggleOff.Play();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -175,6 +175,8 @@ protected:
|
|||||||
RageSound m_SoundNextRow;
|
RageSound m_SoundNextRow;
|
||||||
RageSound m_SoundPrevRow;
|
RageSound m_SoundPrevRow;
|
||||||
RageSound m_SoundStart;
|
RageSound m_SoundStart;
|
||||||
|
RageSound m_SoundToggleOn;
|
||||||
|
RageSound m_SoundToggleOff;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user