Add some Lua bindings for the music wheel and items.
This commit is contained in:
@@ -30,7 +30,7 @@ WheelItemBase::WheelItemBase(RString sType)
|
||||
|
||||
void WheelItemBase::Load( RString sType )
|
||||
{
|
||||
m_colorLocked = RageColor(0,0,0,0.25);
|
||||
m_colorLocked = RageColor(0,0,0,0.25f);
|
||||
}
|
||||
|
||||
void WheelItemBase::LoadFromWheelItemData( const WheelItemBaseData* pWID, int iIndex, bool bHasFocus, int iDrawIndex )
|
||||
@@ -73,13 +73,17 @@ class LunaWheelItemBase: public Luna<WheelItemBase>
|
||||
public:
|
||||
DEFINE_METHOD( GetColor, GetColor() )
|
||||
DEFINE_METHOD( GetText, GetText() )
|
||||
//DEFINE_METHOD( GetType, GetType() )
|
||||
|
||||
static int GetType( T* p, lua_State *L ) {
|
||||
lua_pushnumber( L, p->GetType() );
|
||||
return 1;
|
||||
}
|
||||
|
||||
LunaWheelItemBase()
|
||||
{
|
||||
ADD_METHOD( GetColor );
|
||||
ADD_METHOD( GetText );
|
||||
//ADD_METHOD( GetType );
|
||||
ADD_METHOD( GetType );
|
||||
}
|
||||
};
|
||||
LUA_REGISTER_DERIVED_CLASS( WheelItemBase, ActorFrame )
|
||||
|
||||
Reference in New Issue
Block a user