This commit is contained in:
Glenn Maynard
2005-07-07 10:39:45 +00:00
parent da21fd5a5c
commit 1fd2dc8604
2 changed files with 3 additions and 16 deletions
+3 -14
View File
@@ -46,7 +46,8 @@ void ScreenPlayerOptions::Init()
m_sprOptionsMessage.SetXY( SCREEN_CENTER_X, SCREEN_CENTER_Y ); m_sprOptionsMessage.SetXY( SCREEN_CENTER_X, SCREEN_CENTER_Y );
m_sprOptionsMessage.SetZoom( 1 ); m_sprOptionsMessage.SetZoom( 1 );
m_sprOptionsMessage.SetDiffuse( RageColor(1,1,1,0) ); m_sprOptionsMessage.SetDiffuse( RageColor(1,1,1,0) );
//this->AddChild( &m_sprOptionsMessage ); // we have to draw this manually over the top of transitions m_sprOptionsMessage.SetDrawOrder( DRAW_ORDER_TRANSITIONS+1 );
this->AddChild( &m_sprOptionsMessage );
} }
m_bAcceptedChoices = false; m_bAcceptedChoices = false;
@@ -64,20 +65,8 @@ void ScreenPlayerOptions::Init()
for( unsigned r=0; r<m_pRows.size(); r++ ) for( unsigned r=0; r<m_pRows.size(); r++ )
UpdateDisqualified( r, p ); UpdateDisqualified( r, p );
} }
}
void ScreenPlayerOptions::Update( float fDelta ) this->SortByDrawOrder();
{
ScreenOptionsMaster::Update( fDelta );
if( m_bAskOptionsMessage )
m_sprOptionsMessage.Update( fDelta );
}
void ScreenPlayerOptions::DrawPrimitives()
{
ScreenOptionsMaster::DrawPrimitives();
if( m_bAskOptionsMessage )
m_sprOptionsMessage.Draw();
} }
-2
View File
@@ -12,8 +12,6 @@ public:
ScreenPlayerOptions( CString sName ); ScreenPlayerOptions( CString sName );
virtual void Init(); virtual void Init();
virtual void Update( float fDelta );
virtual void DrawPrimitives();
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ); virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
virtual void HandleScreenMessage( const ScreenMessage SM ); virtual void HandleScreenMessage( const ScreenMessage SM );
bool GetGoToOptions() const { return m_bGoToOptions; } bool GetGoToOptions() const { return m_bGoToOptions; }