add overlay BGA to screen gameplay
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user