split out DrawGrayBar

protected:
This commit is contained in:
Glenn Maynard
2005-05-05 02:48:46 +00:00
parent c307b50c61
commit ac55b2d24f
2 changed files with 15 additions and 9 deletions
+13 -8
View File
@@ -79,18 +79,23 @@ void WheelItemBase::Update( float fDeltaTime )
Actor::Update( fDeltaTime );
}
void WheelItemBase::DrawGrayBar( Sprite& bar )
{
if( m_fPercentGray == 0 )
return;
bar.SetGlow( RageColor(0,0,0,m_fPercentGray) );
bar.SetDiffuse( RageColor(0,0,0,0) );
bar.Draw();
bar.SetDiffuse( RageColor(0,0,0,1) );
bar.SetGlow( RageColor(0,0,0,0) );
}
void WheelItemBase::DrawPrimitives(Sprite& bar)
{
ActorFrame::DrawPrimitives();
if( m_fPercentGray > 0 )
{
bar.SetGlow( RageColor(0,0,0,m_fPercentGray) );
bar.SetDiffuse( RageColor(0,0,0,0) );
bar.Draw();
bar.SetDiffuse( RageColor(0,0,0,1) );
bar.SetGlow( RageColor(0,0,0,0) );
}
DrawGrayBar( bar );
}
/*