improve meter text when displaying high/low meter ranges
This commit is contained in:
@@ -123,29 +123,24 @@ void CourseEntryDisplay::SetFromGameState( int iCourseEntryIndex )
|
|||||||
if( te == NULL || ce == NULL )
|
if( te == NULL || ce == NULL )
|
||||||
continue;
|
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;
|
Difficulty dc = te->dc;
|
||||||
if( dc == DIFFICULTY_INVALID )
|
if( dc == DIFFICULTY_INVALID )
|
||||||
{
|
dc = DIFFICULTY_EDIT;
|
||||||
int iLow = ce->iLowMeter;
|
|
||||||
int iHigh = ce->iHighMeter;
|
|
||||||
|
|
||||||
CString s;
|
SetDifficulty( pn, s, SONGMAN->GetDifficultyColor(dc) );
|
||||||
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 ) );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_TextBanner.LoadFromString( "??????????", "??????????", "", "", "", "" );
|
m_TextBanner.LoadFromString( "??????????", "??????????", "", "", "", "" );
|
||||||
|
|||||||
Reference in New Issue
Block a user