themable "N/A"
This commit is contained in:
@@ -65,6 +65,7 @@ void PaneDisplay::Load( const CString &sType, PlayerNumber pn )
|
|||||||
this->AddChild( m_sprPaneUnder );
|
this->AddChild( m_sprPaneUnder );
|
||||||
|
|
||||||
EMPTY_MACHINE_HIGH_SCORE_NAME.Load( sType, "EmptyMachineHighScoreName" );
|
EMPTY_MACHINE_HIGH_SCORE_NAME.Load( sType, "EmptyMachineHighScoreName" );
|
||||||
|
NOT_AVAILABLE.Load( sType, "NotAvailable" );
|
||||||
|
|
||||||
|
|
||||||
for( int p = 0; p < NUM_PANE_CONTENTS; ++p )
|
for( int p = 0; p < NUM_PANE_CONTENTS; ++p )
|
||||||
@@ -117,7 +118,7 @@ void PaneDisplay::SetContent( PaneContents c )
|
|||||||
goto done;
|
goto done;
|
||||||
if( (g_Contents[c].req&NEED_PROFILE) && !pProfile )
|
if( (g_Contents[c].req&NEED_PROFILE) && !pProfile )
|
||||||
{
|
{
|
||||||
str = "N/A";
|
str = NOT_AVAILABLE;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,7 +197,7 @@ void PaneDisplay::SetContent( PaneContents c )
|
|||||||
case SONG_MACHINE_HIGH_SCORE:
|
case SONG_MACHINE_HIGH_SCORE:
|
||||||
// Don't show or save machine high scores for edits loaded from a player profile.
|
// Don't show or save machine high scores for edits loaded from a player profile.
|
||||||
if( bIsPlayerEdit )
|
if( bIsPlayerEdit )
|
||||||
str = "N/A";
|
str = NOT_AVAILABLE;
|
||||||
else
|
else
|
||||||
str = PercentageDisplay::FormatPercentScore( val );
|
str = PercentageDisplay::FormatPercentScore( val );
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ private:
|
|||||||
PlayerNumber m_PlayerNumber;
|
PlayerNumber m_PlayerNumber;
|
||||||
|
|
||||||
ThemeMetric<CString> EMPTY_MACHINE_HIGH_SCORE_NAME;
|
ThemeMetric<CString> EMPTY_MACHINE_HIGH_SCORE_NAME;
|
||||||
|
ThemeMetric<CString> NOT_AVAILABLE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user