improve meter text when displaying high/low meter ranges

This commit is contained in:
Chris Danford
2005-08-03 03:13:28 +00:00
parent 2ca9f32459
commit c004117e24
+16 -21
View File
@@ -123,29 +123,24 @@ void CourseEntryDisplay::SetFromGameState( int iCourseEntryIndex )
if( te == NULL || ce == NULL )
continue;
int iLow = ce->iLowMeter;
int iHigh = ce->iHighMeter;
CString s;
if( iLow == -1 && iHigh != -1 )
s = ssprintf( "%d+", iHigh );
else if( iLow != -1 && iHigh == -1 )
s = ssprintf( "%d-", iLow );
else if( iLow != -1 && iHigh != -1 )
s = ssprintf( "%d-%d", iLow, iHigh );
else
s = "?";
Difficulty dc = te->dc;
if( dc == DIFFICULTY_INVALID )
{
int iLow = ce->iLowMeter;
int iHigh = ce->iHighMeter;
CString s;
if( iLow == -1 && iHigh != -1 )
s = ssprintf( "<=%d", iHigh );
else if( iLow != -1 && iHigh == -1 )
s = ssprintf( ">=%d", iLow );
else if( iLow != -1 && iHigh != -1 )
s = ssprintf( "%d-%d", iLow, iHigh );
else
s = "?";
RageColor colorNotes = SONGMAN->GetDifficultyColor( te->pSteps->GetDifficulty() );
SetDifficulty( pn, s, colorNotes );
}
else
{
SetDifficulty( pn, "?", SONGMAN->GetDifficultyColor( dc ) );
}
dc = DIFFICULTY_EDIT;
SetDifficulty( pn, s, SONGMAN->GetDifficultyColor(dc) );
}
m_TextBanner.LoadFromString( "??????????", "??????????", "", "", "", "" );