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 )
{
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 )
{