ScreenGameplay::Cancel

This commit is contained in:
Glenn Maynard
2005-09-10 20:07:13 +00:00
parent 239121556c
commit 4ec619a7c2
2 changed files with 8 additions and 4 deletions
+7 -4
View File
@@ -2594,10 +2594,6 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
else else
SOUND->PlayOnceFromAnnouncer( "gameplay failed" ); SOUND->PlayOnceFromAnnouncer( "gameplay failed" );
} }
else if( SM == SM_StopMusic )
{
m_pSoundMusic->Stop();
}
else if( SM == SM_Pause ) else if( SM == SM_Pause )
{ {
/* Ignore SM_Pause when in demonstration. */ /* Ignore SM_Pause when in demonstration. */
@@ -2612,6 +2608,13 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
} }
void ScreenGameplay::Cancel( ScreenMessage smSendWhenDone )
{
m_pSoundMusic->Stop();
ScreenWithMenuElements::Cancel( smSendWhenDone );
}
void ScreenGameplay::TweenOursOnScreen() void ScreenGameplay::TweenOursOnScreen()
{ {
ON_COMMAND( m_sprLifeFrame ); ON_COMMAND( m_sprLifeFrame );
+1
View File
@@ -106,6 +106,7 @@ public:
virtual void Update( float fDeltaTime ); virtual void Update( float fDeltaTime );
virtual void Input( const InputEventPlus &input ); virtual void Input( const InputEventPlus &input );
virtual void HandleScreenMessage( const ScreenMessage SM ); virtual void HandleScreenMessage( const ScreenMessage SM );
virtual void Cancel( ScreenMessage smSendWhenDone );
virtual bool UsesBackground() const { return false; } virtual bool UsesBackground() const { return false; }
virtual ScreenType GetScreenType() const { return gameplay; } virtual ScreenType GetScreenType() const { return gameplay; }