use RollingNumbers for judgment numbers

This commit is contained in:
Chris Danford
2008-08-18 02:10:24 +00:00
parent 2cbaaa4741
commit a4b8c932f5
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -502,6 +502,7 @@ void ScreenEvaluation::Init()
{
m_textJudgmentLineNumber[l][p].LoadFromFont( THEME->GetPathF(m_sName, "JudgmentLineNumber") );
m_textJudgmentLineNumber[l][p].SetName( JudgmentLineToString(l)+ssprintf("NumberP%d",p+1) );
m_textJudgmentLineNumber[l][p].Load( "RollingNumbersJudgment" );
ActorUtil::LoadAllCommands( m_textJudgmentLineNumber[l][p], m_sName );
SET_XY( m_textJudgmentLineNumber[l][p] );
this->AddChild( &m_textJudgmentLineNumber[l][p] );
@@ -520,9 +521,7 @@ void ScreenEvaluation::Init()
DEFAULT_FAIL( l );
}
// UGLY... generalize this
int iNumDigits = (l==JudgmentLine_MaxCombo) ? MAX_COMBO_NUM_DIGITS : 4;
m_textJudgmentLineNumber[l][p].SetText( ssprintf("%*d",iNumDigits,iValue) );
m_textJudgmentLineNumber[l][p].SetTargetNumber( iValue );
}
}
}
+1 -1
View File
@@ -93,7 +93,7 @@ protected:
// judgment area
AutoActor m_sprSharedJudgmentLineLabels[NUM_JudgmentLine];
BitmapText m_textJudgmentLineNumber[NUM_JudgmentLine][NUM_PLAYERS];
RollingNumbers m_textJudgmentLineNumber[NUM_JudgmentLine][NUM_PLAYERS];
// stats area
AutoActor m_sprDetailFrame[NUM_PLAYERS];