ScreenWithMenuElements::BeginScreen: start tweening, and also reset

any previous transitions.
This commit is contained in:
Glenn Maynard
2005-07-15 01:18:42 +00:00
parent 835b688529
commit a4841c349b
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -139,9 +139,18 @@ void ScreenWithMenuElements::Init()
this->AddChild( &m_Cancel );
this->SortByDrawOrder();
}
void ScreenWithMenuElements::BeginScreen()
{
m_In.Reset();
m_Out.Reset();
m_Cancel.Reset();
TweenOnScreen();
m_In.StartTransitioning( SM_DoneFadingIn );
Screen::BeginScreen();
}
void ScreenWithMenuElements::TweenOnScreen()
+1
View File
@@ -17,6 +17,7 @@ class ScreenWithMenuElements : public Screen
public:
ScreenWithMenuElements( CString sName );
virtual void Init();
virtual void BeginScreen();
virtual ~ScreenWithMenuElements();
void Update( float fDeltaTime );