fix up gray bar
This commit is contained in:
@@ -199,6 +199,10 @@ void MusicWheelItem::LoadFromWheelItemData( WheelItemData* pWID, bool bExpanded
|
|||||||
ASSERT( 0 ); // invalid type
|
ASSERT( 0 ); // invalid type
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Actor *pBars[] = { &m_sprBar, &m_sprExpandedBar, &m_sprSectionBar, &m_sprModeBar, &m_sprSortBar, &m_sprSongBar, NULL };
|
||||||
|
for( unsigned i = 0; pBars[i] != NULL; ++i )
|
||||||
|
pBars[i]->SetVisible( false );
|
||||||
|
|
||||||
switch( data->m_Type )
|
switch( data->m_Type )
|
||||||
{
|
{
|
||||||
case TYPE_SECTION:
|
case TYPE_SECTION:
|
||||||
@@ -223,15 +227,13 @@ void MusicWheelItem::LoadFromWheelItemData( WheelItemData* pWID, bool bExpanded
|
|||||||
default: ASSERT(0);
|
default: ASSERT(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Sprite *pBar = NULL;
|
for( unsigned i = 0; pBars[i] != NULL; ++i )
|
||||||
if( m_sprBar.GetVisible() )
|
{
|
||||||
pBar = &m_sprBar;
|
if( !pBars[i]->GetVisible() )
|
||||||
else if( m_sprSectionBar.GetVisible() )
|
continue;
|
||||||
pBar = &m_sprSectionBar;
|
SetGrayBar( pBars[i] );
|
||||||
else
|
break;
|
||||||
pBar = &m_sprExpandedBar;
|
}
|
||||||
|
|
||||||
SetGrayBar( pBar );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MusicWheelItem::RefreshGrades()
|
void MusicWheelItem::RefreshGrades()
|
||||||
|
|||||||
Reference in New Issue
Block a user