Don't send the tween-finished message before all menu elements

have finished tweening.  Fixes tweening problems in the SMMAX2
options menus.

.
This commit is contained in:
Glenn Maynard
2003-04-18 09:11:46 +00:00
parent ba49be01c8
commit a269621ffe
+6 -1
View File
@@ -113,7 +113,12 @@ void MenuElements::StartTransitioning( ScreenMessage smSendWhenDone )
m_sprFooter.Command( FOOTER_OFF_COMMAND );
m_textHelp.Command( HELP_OFF_COMMAND );
m_Out.StartTransitioning( smSendWhenDone );
m_Out.StartTransitioning();
/* This includes all of the actors: */
float TimeUntilFinished = GetTweenTimeLeft();
TimeUntilFinished = max(TimeUntilFinished, m_Out.GetLengthSeconds());
SCREENMAN->PostMessageToTopScreen( smSendWhenDone, TimeUntilFinished );
}
void MenuElements::Back( ScreenMessage smSendWhenDone )