[WheelBase, WheelItemBase] Turned WheelItemDataType into a Lua type, made WheelBase:GetSelectedType() return the enum instead of a number.

This commit is contained in:
AJ Kelly
2012-02-10 13:57:24 -06:00
parent cb38919b8c
commit dc3300ae90
4 changed files with 25 additions and 5 deletions
+16
View File
@@ -1,5 +1,21 @@
#include "global.h"
#include "WheelItemBase.h"
#include "LuaManager.h"
static const char *WheelItemDataTypeNames[] = {
"Generic",
"Section",
"Song",
"Roulette",
"Random",
"Portal",
"Course",
"Sort",
"Custom",
};
XToString( WheelItemDataType );
StringToX( WheelItemDataType );
LuaXType( WheelItemDataType );
WheelItemBaseData::WheelItemBaseData( WheelItemDataType type, RString sText, RageColor color )
{