add GenericTweenOff

This commit is contained in:
Glenn Maynard
2006-06-24 18:03:16 +00:00
parent 3685ff4cd8
commit 42b53d9334
2 changed files with 14 additions and 1 deletions
+13 -1
View File
@@ -232,7 +232,19 @@ void ScreenWithMenuElements::ResetTimer()
void ScreenWithMenuElements::StartTransitioningScreen( ScreenMessage smSendWhenDone ) void ScreenWithMenuElements::StartTransitioningScreen( ScreenMessage smSendWhenDone )
{ {
TweenOffScreen(); if( GenericTweenOff() )
{
this->PlayCommand( "Off" );
// If we're a stacked screen, then there's someone else between us and the
// background, so don't tween it off.
if( !SCREENMAN->IsStackedScreen(this) )
SCREENMAN->PlaySharedBackgroundOffCommand();
}
else
{
TweenOffScreen();
}
if( WAIT_FOR_CHILDREN_BEFORE_TWEENING_OUT ) if( WAIT_FOR_CHILDREN_BEFORE_TWEENING_OUT )
{ {
+1
View File
@@ -44,6 +44,7 @@ protected:
* TweenOnScreen will not be called. (Eventually, all screens should * TweenOnScreen will not be called. (Eventually, all screens should
* use this, and this will be removed.) */ * use this, and this will be removed.) */
virtual bool GenericTweenOn() const { return false; } virtual bool GenericTweenOn() const { return false; }
virtual bool GenericTweenOff() const { return false; }
AutoActor m_sprUnderlay; AutoActor m_sprUnderlay;
AutoActor m_autoHeader; AutoActor m_autoHeader;