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 );
+4 -2
View File
@@ -148,6 +148,7 @@ protected:
Transition m_Draw;
Transition m_In;
Transition m_Back;
BGAnimation m_Overlay;
BitmapText m_textSurviveTime; // used in extra stage
BitmapText m_textSongTitle;
@@ -160,8 +161,9 @@ protected:
DifficultyIcon m_DifficultyIcon[NUM_PLAYERS];
BGAnimation m_bgaBH;
Sprite m_sprBH;
// These aren't used. Are they left-overs from BeginnerHelper work? -Chris
// BGAnimation m_bgaBH;
// Sprite m_sprBH;
Sprite m_sprOniGameOver[NUM_PLAYERS];
void ShowOniGameOver( PlayerNumber pn );