cleanup
This commit is contained in:
@@ -739,7 +739,7 @@ void MusicWheel::RebuildAllMusicWheelItems()
|
||||
|
||||
void MusicWheel::RebuildMusicWheelItems( int iDist )
|
||||
{
|
||||
vector<WheelItemData *> &data = m_CurWheelItemData;
|
||||
const vector<WheelItemData *> &data = m_CurWheelItemData;
|
||||
vector<MusicWheelItem *> &items = m_MusicWheelItems;
|
||||
|
||||
// rewind to first index that will be displayed;
|
||||
@@ -816,12 +816,11 @@ void MusicWheel::NotesOrTrailChanged( PlayerNumber pn ) // update grade graphics
|
||||
|
||||
void MusicWheel::DrawItem( int i )
|
||||
{
|
||||
MusicWheelItem *display = m_MusicWheelItems[i];
|
||||
|
||||
const float fThisBannerPositionOffsetFromSelection = i - NUM_WHEEL_ITEMS/2 + m_fPositionOffsetFromSelection;
|
||||
if( fabsf(fThisBannerPositionOffsetFromSelection) > NUM_WHEEL_ITEMS_TO_DRAW/2 )
|
||||
return;
|
||||
|
||||
MusicWheelItem *display = m_MusicWheelItems[i];
|
||||
switch( m_WheelState )
|
||||
{
|
||||
case STATE_SELECTING:
|
||||
|
||||
@@ -157,6 +157,10 @@ void WheelBase::DrawPrimitives()
|
||||
ActorFrame::DrawPrimitives();
|
||||
}
|
||||
|
||||
void WheelBase::DrawItem( int i )
|
||||
{
|
||||
DrawItem( i, m_WheelBaseItems[i], i - NUM_WHEEL_ITEMS/2 + m_fPositionOffsetFromSelection );
|
||||
}
|
||||
|
||||
void WheelBase::DrawItem( int i, WheelItemBase *display, const float fThisBannerPositionOffsetFromSelection)
|
||||
{
|
||||
@@ -627,7 +631,7 @@ void WheelBase::BuildWheelItemsData( vector<WheelItemBaseData*> &arrayWheelItemD
|
||||
|
||||
void WheelBase::RebuildWheelItems( int iDist )
|
||||
{
|
||||
vector<WheelItemBaseData *> &data = m_WheelBaseItemsData;
|
||||
const vector<WheelItemBaseData *> &data = m_WheelBaseItemsData;
|
||||
vector<WheelItemBase *> &items = m_WheelBaseItems;
|
||||
|
||||
// rewind to first index that will be displayed;
|
||||
|
||||
@@ -24,8 +24,8 @@ public:
|
||||
|
||||
virtual void Update( float fDeltaTime );
|
||||
virtual void DrawPrimitives();
|
||||
virtual void DrawItem( int i );
|
||||
virtual void DrawItem( int i, WheelItemBase *display, const float fThisBannerPositionOffsetFromSelection);
|
||||
virtual void DrawItem( int i ) { DrawItem( i, m_WheelBaseItems[i], i - NUM_WHEEL_ITEMS/2 + m_fPositionOffsetFromSelection ); }
|
||||
|
||||
void TweenOnScreen(bool changing_sort);
|
||||
void TweenOffScreen(bool changing_sort);
|
||||
|
||||
Reference in New Issue
Block a user