make wheel item locked color a metric

This commit is contained in:
Chris Danford
2006-04-25 08:46:43 +00:00
parent c3f0cd20c7
commit 61955f3266
6 changed files with 41 additions and 40 deletions
+3 -3
View File
@@ -39,7 +39,7 @@ void WheelItemBase::Load( RString sType )
TEXT_Y .Load(sType,"TextY");
TEXT_ON_COMMAND .Load(sType,"TextOnCommand");
m_fPercentGray = 0;
m_colorLocked = RageColor(0,0,0,0);
m_sprBar.Load( THEME->GetPathG(sType,"bar") );
m_sprBar.SetXY( 0, 0 );
@@ -77,13 +77,13 @@ void WheelItemBase::LoadFromWheelItemBaseData( WheelItemBaseData* pWID )
void WheelItemBase::DrawGrayBar( Actor& bar )
{
if( m_fPercentGray == 0 )
if( m_colorLocked.a == 0 )
return;
RageColor glow = bar.GetGlow();
RageColor diffuse = bar.GetDiffuse();
bar.SetGlow( RageColor(0,0,0,m_fPercentGray) );
bar.SetGlow( m_colorLocked );
bar.SetDiffuse( RageColor(0,0,0,0) );
bar.Draw();