ScreenWithMenuElements::BeginScreen: start tweening, and also reset
any previous transitions.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -17,6 +17,7 @@ class ScreenWithMenuElements : public Screen
|
||||
public:
|
||||
ScreenWithMenuElements( CString sName );
|
||||
virtual void Init();
|
||||
virtual void BeginScreen();
|
||||
virtual ~ScreenWithMenuElements();
|
||||
|
||||
void Update( float fDeltaTime );
|
||||
|
||||
Reference in New Issue
Block a user