themable "N/A"

This commit is contained in:
Glenn Maynard
2005-10-30 20:58:08 +00:00
parent 76ade2280a
commit dd16deaf23
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -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;
+1
View File
@@ -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