play cancel sound when using CancelTransitionsOut, not start sound

This commit is contained in:
Chris Danford
2006-03-08 23:58:37 +00:00
parent 7ec7a906c3
commit 58a6402201
5 changed files with 12 additions and 3 deletions
@@ -0,0 +1 @@
_cancel
+8
View File
@@ -256,6 +256,7 @@ void ScreenManager::ThemeChanged()
// reload common sounds
m_soundStart.Load( THEME->GetPathS("Common","start") );
m_soundCoin.Load( THEME->GetPathS("Common","coin"), true );
m_soundCancel.Load( THEME->GetPathS("Common","cancel"), true );
m_soundInvalid.Load( THEME->GetPathS("Common","invalid") );
m_soundScreenshot.Load( THEME->GetPathS("Common","screenshot") );
@@ -852,6 +853,13 @@ void ScreenManager::PlayCoinSound()
m_soundCoin.Play( &p );
}
void ScreenManager::PlayCancelSound()
{
RageSoundParams p;
p.m_bIsCriticalSound = true;
m_soundCancel.Play( &p );
}
void ScreenManager::PlayScreenshotSound()
{
RageSoundParams p;
+2
View File
@@ -92,12 +92,14 @@ private:
public:
void PlayStartSound();
void PlayCoinSound();
void PlayCancelSound();
void PlayInvalidSound();
void PlayScreenshotSound();
private:
RageSound m_soundStart;
RageSound m_soundCoin;
RageSound m_soundCancel;
RageSound m_soundInvalid;
RageSound m_soundScreenshot;
};
-2
View File
@@ -758,8 +758,6 @@ void ScreenOptions::AfterChangeValueOrRow( PlayerNumber pn )
void ScreenOptions::MenuBack( PlayerNumber pn )
{
Screen::MenuBack( pn );
Cancel( SM_GoToPrevScreen );
}
+1 -1
View File
@@ -276,7 +276,7 @@ void ScreenWithMenuElements::Cancel( ScreenMessage smSendWhenDone )
{
if( CANCEL_TRANSITIONS_OUT )
{
SCREENMAN->PlayStartSound();
SCREENMAN->PlayCancelSound();
StartTransitioningScreen( smSendWhenDone );
return;
}