play cancel sound when using CancelTransitionsOut, not start sound
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
_cancel
|
||||||
@@ -256,6 +256,7 @@ void ScreenManager::ThemeChanged()
|
|||||||
// reload common sounds
|
// reload common sounds
|
||||||
m_soundStart.Load( THEME->GetPathS("Common","start") );
|
m_soundStart.Load( THEME->GetPathS("Common","start") );
|
||||||
m_soundCoin.Load( THEME->GetPathS("Common","coin"), true );
|
m_soundCoin.Load( THEME->GetPathS("Common","coin"), true );
|
||||||
|
m_soundCancel.Load( THEME->GetPathS("Common","cancel"), true );
|
||||||
m_soundInvalid.Load( THEME->GetPathS("Common","invalid") );
|
m_soundInvalid.Load( THEME->GetPathS("Common","invalid") );
|
||||||
m_soundScreenshot.Load( THEME->GetPathS("Common","screenshot") );
|
m_soundScreenshot.Load( THEME->GetPathS("Common","screenshot") );
|
||||||
|
|
||||||
@@ -852,6 +853,13 @@ void ScreenManager::PlayCoinSound()
|
|||||||
m_soundCoin.Play( &p );
|
m_soundCoin.Play( &p );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScreenManager::PlayCancelSound()
|
||||||
|
{
|
||||||
|
RageSoundParams p;
|
||||||
|
p.m_bIsCriticalSound = true;
|
||||||
|
m_soundCancel.Play( &p );
|
||||||
|
}
|
||||||
|
|
||||||
void ScreenManager::PlayScreenshotSound()
|
void ScreenManager::PlayScreenshotSound()
|
||||||
{
|
{
|
||||||
RageSoundParams p;
|
RageSoundParams p;
|
||||||
|
|||||||
@@ -92,12 +92,14 @@ private:
|
|||||||
public:
|
public:
|
||||||
void PlayStartSound();
|
void PlayStartSound();
|
||||||
void PlayCoinSound();
|
void PlayCoinSound();
|
||||||
|
void PlayCancelSound();
|
||||||
void PlayInvalidSound();
|
void PlayInvalidSound();
|
||||||
void PlayScreenshotSound();
|
void PlayScreenshotSound();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RageSound m_soundStart;
|
RageSound m_soundStart;
|
||||||
RageSound m_soundCoin;
|
RageSound m_soundCoin;
|
||||||
|
RageSound m_soundCancel;
|
||||||
RageSound m_soundInvalid;
|
RageSound m_soundInvalid;
|
||||||
RageSound m_soundScreenshot;
|
RageSound m_soundScreenshot;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -758,8 +758,6 @@ void ScreenOptions::AfterChangeValueOrRow( PlayerNumber pn )
|
|||||||
|
|
||||||
void ScreenOptions::MenuBack( PlayerNumber pn )
|
void ScreenOptions::MenuBack( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
Screen::MenuBack( pn );
|
|
||||||
|
|
||||||
Cancel( SM_GoToPrevScreen );
|
Cancel( SM_GoToPrevScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -276,7 +276,7 @@ void ScreenWithMenuElements::Cancel( ScreenMessage smSendWhenDone )
|
|||||||
{
|
{
|
||||||
if( CANCEL_TRANSITIONS_OUT )
|
if( CANCEL_TRANSITIONS_OUT )
|
||||||
{
|
{
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayCancelSound();
|
||||||
StartTransitioningScreen( smSendWhenDone );
|
StartTransitioningScreen( smSendWhenDone );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user