[ScreenEvaluation] Added RollingNumbersClass metric, allowing for the ability to change which RollingNumbers class is loaded.
This commit is contained in:
@@ -452,6 +452,7 @@ void ScreenEvaluation::Init()
|
||||
}
|
||||
|
||||
// init judgment area
|
||||
ROLLING_NUMBERS_CLASS.Load( m_sName, "RollingNumbersClass" );
|
||||
FOREACH_ENUM( JudgmentLine, l )
|
||||
{
|
||||
if( l == JudgmentLine_W1 && !GAMESTATE->ShowW1() )
|
||||
@@ -473,7 +474,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" );
|
||||
m_textJudgmentLineNumber[l][p].Load( ROLLING_NUMBERS_CLASS );
|
||||
ActorUtil::LoadAllCommands( m_textJudgmentLineNumber[l][p], m_sName );
|
||||
SET_XY( m_textJudgmentLineNumber[l][p] );
|
||||
this->AddChild( &m_textJudgmentLineNumber[l][p] );
|
||||
|
||||
@@ -76,7 +76,7 @@ protected:
|
||||
|
||||
// grade area
|
||||
AutoActor m_sprGradeFrame[NUM_PLAYERS];
|
||||
GradeDisplay m_Grades[NUM_PLAYERS];
|
||||
GradeDisplay m_Grades[NUM_PLAYERS];
|
||||
|
||||
// points area
|
||||
bool m_bNewSongsUnlocked;
|
||||
@@ -115,6 +115,7 @@ protected:
|
||||
RageSound m_soundStart; // sound played if the player passes or fails
|
||||
|
||||
ThemeMetric<bool> SUMMARY;
|
||||
ThemeMetric<RString> ROLLING_NUMBERS_CLASS;
|
||||
/** @brief Did a player save a screenshot of their score? */
|
||||
bool m_bSavedScreenshot[NUM_PLAYERS];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user