add GenericTweenOn()

This commit is contained in:
Glenn Maynard
2005-09-22 01:27:00 +00:00
parent b7d8a64199
commit dae80d0805
2 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -140,7 +140,10 @@ void ScreenWithMenuElements::BeginScreen()
m_Out.Reset();
m_Cancel.Reset();
TweenOnScreen();
if( GenericTweenOn() )
this->PlayCommand( "On" );
else
TweenOnScreen(); // deprecated
m_In.StartTransitioning( SM_DoneFadingIn );
Screen::BeginScreen();
+5
View File
@@ -41,6 +41,11 @@ protected:
virtual void StartPlayingMusic();
virtual void LoadHelpText();
/* If true, BeginScreen() will run OnCommand on the whole screen, and
* TweenOnScreen will not be called. (Eventually, all screens should
* use this, and this will be removed.) */
virtual bool GenericTweenOn() const { return false; }
AutoActor m_sprUnderlay;
AutoActor m_autoHeader;
Sprite m_sprStyleIcon;