add EndScreen(), symmetric with BeginScreen

This commit is contained in:
Glenn Maynard
2006-03-16 05:38:47 +00:00
parent 72c25d79d9
commit 3699674088
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -45,6 +45,9 @@ public:
/* This is called immediately before the screen is used. */
virtual void BeginScreen();
/* This is called when the screen is popped. */
virtual void EndScreen() { }
virtual void Update( float fDeltaTime );
virtual bool OverlayInput( const InputEventPlus &input );
virtual void Input( const InputEventPlus &input );
+1
View File
@@ -323,6 +323,7 @@ ScreenMessage ScreenManager::PopTopScreenInternal( bool bSendLoseFocus )
if( bSendLoseFocus )
ls.m_pScreen->HandleScreenMessage( SM_LoseFocus );
ls.m_pScreen->EndScreen();
if( g_setPersistantScreens.find(ls.m_pScreen->GetName()) != g_setPersistantScreens.end() )
{