Added custom MusicWheel items.

[ScreenSelectMusic] Add GetMusicWheel Lua binding.
This commit is contained in:
AJ Kelly
2011-03-08 19:28:40 -06:00
parent 8fa1aa09b6
commit c28845a8dc
12 changed files with 73 additions and 5 deletions
+5
View File
@@ -29,6 +29,7 @@ static const char *MusicWheelItemTypeNames[] = {
"Mode",
"Random",
"Portal",
"Custom",
};
XToString( MusicWheelItemType );
@@ -256,6 +257,10 @@ void MusicWheelItem::LoadFromWheelItemData( const WheelItemBaseData *pData, int
sDisplayName = THEME->GetString("MusicWheel","Portal");
type = MusicWheelItemType_Portal;
break;
case TYPE_CUSTOM:
sDisplayName = pWID->m_sLabel;
type = MusicWheelItemType_Custom;
break;
}
m_sprColorPart[type]->SetVisible( true );