fix DifficultyList colors not properly set when scrolling over Roulette

This commit is contained in:
Chris Danford
2004-05-29 04:55:00 +00:00
parent 6ad780417e
commit 2fab068fe4
3 changed files with 17 additions and 11 deletions
+6 -6
View File
@@ -106,7 +106,7 @@ void DifficultyMeter::SetFromSteps( const Steps* pSteps )
return;
}
SetMeter( pSteps->GetMeter(), pSteps->GetDifficulty() );
SetFromMeterAndDifficulty( pSteps->GetMeter(), pSteps->GetDifficulty() );
SetDifficulty( DifficultyToString( pSteps->GetDifficulty() ) );
}
@@ -135,7 +135,7 @@ void DifficultyMeter::SetFromCourse( const Course* pCourse, PlayerNumber pn )
else
FakeDifficulty = DIFFICULTY_CHALLENGE;
SetMeter( meter, FakeDifficulty );
SetFromMeterAndDifficulty( meter, FakeDifficulty );
SetDifficulty( DifficultyToString(FakeDifficulty) + "Course" );
}
@@ -144,7 +144,7 @@ void DifficultyMeter::Unset()
m_textFeet.SetEffectNone();
if( FEET_IS_DIFFICULTY_COLOR )
m_textFeet.SetDiffuse( RageColor(0.8f,0.8f,0.8f,1) );
SetMeter( 0, DIFFICULTY_BEGINNER );
SetFromMeterAndDifficulty( 0, DIFFICULTY_BEGINNER );
SetDifficulty( "None" );
}
@@ -153,7 +153,7 @@ void DifficultyMeter::SetFromDifficulty( Difficulty dc )
m_textFeet.SetEffectNone();
if( FEET_IS_DIFFICULTY_COLOR )
m_textFeet.SetDiffuse( RageColor(0.8f,0.8f,0.8f,1) );
SetMeter( 0, DIFFICULTY_BEGINNER );
SetFromMeterAndDifficulty( 0, DIFFICULTY_BEGINNER );
SetDifficulty( DifficultyToString( dc ) );
}
@@ -162,7 +162,7 @@ void DifficultyMeter::SetFromCourseDifficulty( CourseDifficulty cd )
m_textFeet.SetEffectNone();
if( FEET_IS_DIFFICULTY_COLOR )
m_textFeet.SetDiffuse( RageColor(0.8f,0.8f,0.8f,1) );
SetMeter( 0, DIFFICULTY_BEGINNER );
SetFromMeterAndDifficulty( 0, DIFFICULTY_BEGINNER );
SetDifficulty( CourseDifficultyToString( cd ) );
}
@@ -186,7 +186,7 @@ void DifficultyMeter::SetFromGameState( PlayerNumber pn )
}
}
void DifficultyMeter::SetMeter( int iMeter, Difficulty dc )
void DifficultyMeter::SetFromMeterAndDifficulty( int iMeter, Difficulty dc )
{
if( SHOW_FEET )
{