pass a GameCommand to each wheel item bar (experimental)
This commit is contained in:
@@ -522,7 +522,15 @@ void WheelBase::RebuildWheelItems( int iDist )
|
||||
WheelItemBase *pDisplay = items[i];
|
||||
|
||||
pDisplay->SetExpanded( pData->m_Type == TYPE_SECTION && pData->m_sText == m_sExpandedSectionName );
|
||||
pDisplay->LoadFromWheelItemData( pData );
|
||||
}
|
||||
|
||||
for( int i=0; i<(int)items.size(); i++ )
|
||||
{
|
||||
int iIndex = iFirstVisibleIndex + i;
|
||||
wrap( iIndex, data.size() );
|
||||
const WheelItemBaseData *pData = data[iIndex];
|
||||
WheelItemBase *pDisplay = items[i];
|
||||
pDisplay->LoadFromWheelItemData( pData, iIndex, m_iSelection==iIndex );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user