use RollingNumbers for judgment numbers
This commit is contained in:
@@ -502,6 +502,7 @@ void ScreenEvaluation::Init()
|
|||||||
{
|
{
|
||||||
m_textJudgmentLineNumber[l][p].LoadFromFont( THEME->GetPathF(m_sName, "JudgmentLineNumber") );
|
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].SetName( JudgmentLineToString(l)+ssprintf("NumberP%d",p+1) );
|
||||||
|
m_textJudgmentLineNumber[l][p].Load( "RollingNumbersJudgment" );
|
||||||
ActorUtil::LoadAllCommands( m_textJudgmentLineNumber[l][p], m_sName );
|
ActorUtil::LoadAllCommands( m_textJudgmentLineNumber[l][p], m_sName );
|
||||||
SET_XY( m_textJudgmentLineNumber[l][p] );
|
SET_XY( m_textJudgmentLineNumber[l][p] );
|
||||||
this->AddChild( &m_textJudgmentLineNumber[l][p] );
|
this->AddChild( &m_textJudgmentLineNumber[l][p] );
|
||||||
@@ -520,9 +521,7 @@ void ScreenEvaluation::Init()
|
|||||||
DEFAULT_FAIL( l );
|
DEFAULT_FAIL( l );
|
||||||
}
|
}
|
||||||
|
|
||||||
// UGLY... generalize this
|
m_textJudgmentLineNumber[l][p].SetTargetNumber( iValue );
|
||||||
int iNumDigits = (l==JudgmentLine_MaxCombo) ? MAX_COMBO_NUM_DIGITS : 4;
|
|
||||||
m_textJudgmentLineNumber[l][p].SetText( ssprintf("%*d",iNumDigits,iValue) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ protected:
|
|||||||
|
|
||||||
// judgment area
|
// judgment area
|
||||||
AutoActor m_sprSharedJudgmentLineLabels[NUM_JudgmentLine];
|
AutoActor m_sprSharedJudgmentLineLabels[NUM_JudgmentLine];
|
||||||
BitmapText m_textJudgmentLineNumber[NUM_JudgmentLine][NUM_PLAYERS];
|
RollingNumbers m_textJudgmentLineNumber[NUM_JudgmentLine][NUM_PLAYERS];
|
||||||
|
|
||||||
// stats area
|
// stats area
|
||||||
AutoActor m_sprDetailFrame[NUM_PLAYERS];
|
AutoActor m_sprDetailFrame[NUM_PLAYERS];
|
||||||
|
|||||||
Reference in New Issue
Block a user