touchup
This commit is contained in:
@@ -78,7 +78,6 @@ void LifeMeterTime::OnLoadSong()
|
|||||||
const CourseEntry *pEntry = &pCourse->m_vEntries[GAMESTATE->GetCourseSongIndex()];
|
const CourseEntry *pEntry = &pCourse->m_vEntries[GAMESTATE->GetCourseSongIndex()];
|
||||||
m_fLifeTotalGainedSeconds += pEntry->fGainSeconds;
|
m_fLifeTotalGainedSeconds += pEntry->fGainSeconds;
|
||||||
|
|
||||||
if( GAMESTATE->GetCourseSongIndex() > 0 )
|
|
||||||
m_soundGainLife.Play();
|
m_soundGainLife.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,10 +126,11 @@ void ScoreDisplayLifeTime::OnJudgment( HoldNoteScore hns, TapNoteScore tns )
|
|||||||
|
|
||||||
void ScoreDisplayLifeTime::PlayGainLoss( const RString &sCommand, float fDeltaLifeSecs )
|
void ScoreDisplayLifeTime::PlayGainLoss( const RString &sCommand, float fDeltaLifeSecs )
|
||||||
{
|
{
|
||||||
RString s;
|
if( fDeltaLifeSecs == 0 )
|
||||||
if( fDeltaLifeSecs != 0 )
|
return; // don't animate if no change
|
||||||
s = ssprintf( "%+1.1fs", fDeltaLifeSecs);
|
RString s = ssprintf( "%+1.1fs", fDeltaLifeSecs);
|
||||||
m_textDeltaSeconds.SetText( s );
|
m_textDeltaSeconds.SetText( s );
|
||||||
|
m_textDeltaSeconds.FinishTweening();
|
||||||
m_textDeltaSeconds.PlayCommand( sCommand );
|
m_textDeltaSeconds.PlayCommand( sCommand );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user