add transition at end of song; used regardless of mode
This commit is contained in:
@@ -342,7 +342,8 @@ void ScreenGameplay::Init()
|
|||||||
m_NextSongOut.SetZ( -2 ); // on top of everything else
|
m_NextSongOut.SetZ( -2 ); // on top of everything else
|
||||||
this->AddChild( &m_NextSongOut );
|
this->AddChild( &m_NextSongOut );
|
||||||
|
|
||||||
|
m_SongFinished.SetZ( -2 ); // on top of everything else
|
||||||
|
this->AddChild( &m_SongFinished );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Add LifeFrame
|
// Add LifeFrame
|
||||||
@@ -953,6 +954,8 @@ void ScreenGameplay::LoadNextSong()
|
|||||||
// Instead, load this right before it's used
|
// Instead, load this right before it's used
|
||||||
// m_NextSongOut.Load( THEME->GetPathToB("ScreenGameplay next song out") );
|
// m_NextSongOut.Load( THEME->GetPathToB("ScreenGameplay next song out") );
|
||||||
|
|
||||||
|
m_SongFinished.Load( THEME->GetPathToB("ScreenGameplay song finished") );
|
||||||
|
|
||||||
// Load lyrics
|
// Load lyrics
|
||||||
// XXX: don't load this here
|
// XXX: don't load this here
|
||||||
LyricsLoader LL;
|
LyricsLoader LL;
|
||||||
@@ -1219,8 +1222,8 @@ void ScreenGameplay::Update( float fDeltaTime )
|
|||||||
// Check for end of song
|
// Check for end of song
|
||||||
//
|
//
|
||||||
float fSecondsToStop = GAMESTATE->m_pCurSong->GetElapsedTimeFromBeat( GAMESTATE->m_pCurSong->m_fLastBeat );
|
float fSecondsToStop = GAMESTATE->m_pCurSong->GetElapsedTimeFromBeat( GAMESTATE->m_pCurSong->m_fLastBeat );
|
||||||
if( GAMESTATE->m_fMusicSeconds > fSecondsToStop && !m_NextSongOut.IsTransitioning() )
|
if( GAMESTATE->m_fMusicSeconds > fSecondsToStop && !m_SongFinished.IsTransitioning() && !m_NextSongOut.IsTransitioning() )
|
||||||
this->PostScreenMessage( SM_NotesEnded, 0 );
|
m_SongFinished.StartTransitioning( SM_NotesEnded );
|
||||||
|
|
||||||
//
|
//
|
||||||
// check for fail
|
// check for fail
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ protected:
|
|||||||
|
|
||||||
Transition m_NextSongIn; // shows between songs in a course
|
Transition m_NextSongIn; // shows between songs in a course
|
||||||
Transition m_NextSongOut; // shows between songs in a course
|
Transition m_NextSongOut; // shows between songs in a course
|
||||||
|
Transition m_SongFinished; // shows after each song, course or not
|
||||||
|
|
||||||
Sprite m_sprStaticBackground;
|
Sprite m_sprStaticBackground;
|
||||||
Sprite m_sprLifeFrame;
|
Sprite m_sprLifeFrame;
|
||||||
|
|||||||
Reference in New Issue
Block a user