pass a GameCommand to each wheel item bar (experimental)

This commit is contained in:
Chris Danford
2006-12-07 11:34:42 +00:00
parent a1ae4ce45a
commit 33835ee478
9 changed files with 43 additions and 13 deletions
+9 -1
View File
@@ -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 );
}
}