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