[ScreenGameplay, LyricDisplay] Stop lyrics from animating on failure. Fixes issue 298.
This commit is contained in:
@@ -8,6 +8,11 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 Preview 3 | 20110???
|
StepMania 5.0 Preview 3 | 20110???
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/07/31
|
||||||
|
----------
|
||||||
|
* [ScreenGameplay, LyricDisplay] Stop lyrics from animating on failure.
|
||||||
|
Fixes issue 298. [AJ]
|
||||||
|
|
||||||
2011/07/30
|
2011/07/30
|
||||||
----------
|
----------
|
||||||
* [ProfileManager] Fix an issue when deleting recently created profiles. [AJ]
|
* [ProfileManager] Fix an issue when deleting recently created profiles. [AJ]
|
||||||
|
|||||||
@@ -31,10 +31,18 @@ void LyricDisplay::Init()
|
|||||||
m_iCurLyricNumber = 0;
|
m_iCurLyricNumber = 0;
|
||||||
|
|
||||||
m_fLastSecond = -500;
|
m_fLastSecond = -500;
|
||||||
|
m_bStopped = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LyricDisplay::Stop() {
|
||||||
|
m_bStopped = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LyricDisplay::Update( float fDeltaTime )
|
void LyricDisplay::Update( float fDeltaTime )
|
||||||
{
|
{
|
||||||
|
if( m_bStopped )
|
||||||
|
return;
|
||||||
|
|
||||||
ActorFrame::Update( fDeltaTime );
|
ActorFrame::Update( fDeltaTime );
|
||||||
|
|
||||||
if( GAMESTATE->m_pCurSong == NULL )
|
if( GAMESTATE->m_pCurSong == NULL )
|
||||||
|
|||||||
@@ -13,10 +13,14 @@ public:
|
|||||||
// Call when song changes:
|
// Call when song changes:
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
|
// Call on song failed:
|
||||||
|
void Stop();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BitmapText m_textLyrics[2];
|
BitmapText m_textLyrics[2];
|
||||||
unsigned m_iCurLyricNumber;
|
unsigned m_iCurLyricNumber;
|
||||||
float m_fLastSecond;
|
float m_fLastSecond;
|
||||||
|
bool m_bStopped;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1713,7 +1713,7 @@ void ScreenGameplay::Update( float fDeltaTime )
|
|||||||
{
|
{
|
||||||
m_pSoundMusic->StopPlaying();
|
m_pSoundMusic->StopPlaying();
|
||||||
SCREENMAN->PostMessageToTopScreen( SM_NotesEnded, 0 );
|
SCREENMAN->PostMessageToTopScreen( SM_NotesEnded, 0 );
|
||||||
// todo: stop lyrics (m_LyricDisplay) from animating -aj
|
m_LyricDisplay.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update living players' alive time
|
// Update living players' alive time
|
||||||
|
|||||||
Reference in New Issue
Block a user