simplify
This commit is contained in:
@@ -66,21 +66,14 @@ void WheelItemBase::LoadFromWheelItemBaseData( WheelItemBaseData* pWID )
|
||||
switch( pWID->m_Type )
|
||||
{
|
||||
case TYPE_GENERIC:
|
||||
{
|
||||
m_text.SetText( data->m_sText );
|
||||
m_text.SetDiffuse( data->m_color );
|
||||
}
|
||||
m_text.SetText( data->m_sText );
|
||||
m_text.SetDiffuse( data->m_color );
|
||||
break;
|
||||
default:
|
||||
ASSERT( 0 ); // invalid type
|
||||
}
|
||||
}
|
||||
|
||||
void WheelItemBase::Update( float fDeltaTime )
|
||||
{
|
||||
Actor::Update( fDeltaTime );
|
||||
}
|
||||
|
||||
void WheelItemBase::DrawGrayBar( Actor& bar )
|
||||
{
|
||||
if( m_fPercentGray == 0 )
|
||||
|
||||
@@ -29,7 +29,6 @@ class WheelItemBase : public ActorFrame
|
||||
{
|
||||
public:
|
||||
WheelItemBase( CString sType = "WheelItemBase" );
|
||||
virtual void Update( float fDeltaTime );
|
||||
virtual void DrawPrimitives();
|
||||
|
||||
void Load( CString sType );
|
||||
|
||||
Reference in New Issue
Block a user