add overlay BGA to screen gameplay

This commit is contained in:
Chris Danford
2004-01-25 01:59:57 +00:00
parent bec296636e
commit 36beda7333
2 changed files with 10 additions and 2 deletions
+6
View File
@@ -681,6 +681,10 @@ ScreenGameplay::ScreenGameplay( CString sName, bool bDemonstration ) : Screen("S
m_Back.SetZ( -2 ); // on top of everything else
this->AddChild( &m_Back );
m_Overlay.LoadFromAniDir( THEME->GetPathToB("ScreenGameplay Overlay") );
m_Overlay.SetZ( -4 ); // on top of everything else
this->AddChild( &m_Overlay );
if( GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() ) // only load if we're going to use it
{
@@ -2276,6 +2280,7 @@ void ScreenGameplay::TweenOnScreen()
ON_COMMAND( m_textPlayerOptions[p] );
ON_COMMAND( m_DifficultyIcon[p] );
}
m_Overlay.PlayCommand("On");
}
void ScreenGameplay::TweenOffScreen()
@@ -2306,6 +2311,7 @@ void ScreenGameplay::TweenOffScreen()
OFF_COMMAND( m_textPlayerOptions[p] );
OFF_COMMAND( m_DifficultyIcon[p] );
}
m_Overlay.PlayCommand("Off");
m_textDebug.StopTweening();
m_textDebug.BeginTweening( 1/8.f );