Add MusicWheel:IsRouletting and WheelBase:GetNumWheelItems Lua bindings.
This commit is contained in:
@@ -8,6 +8,11 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 $next | 20111xxx
|
StepMania 5.0 $next | 20111xxx
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/12/27
|
||||||
|
----------
|
||||||
|
* [MusicWheel] Add
|
||||||
|
* [WheelBase] Add GetNumWheelItems Lua binding. [AJ]
|
||||||
|
|
||||||
2011/12/26
|
2011/12/26
|
||||||
----------
|
----------
|
||||||
* [ArchHooks_OSX] Worked around a crash when language detection goes wrong.
|
* [ArchHooks_OSX] Worked around a crash when language detection goes wrong.
|
||||||
|
|||||||
@@ -1602,6 +1602,20 @@ void MusicWheel::FinishChangingSorts()
|
|||||||
m_fTimeLeftInState = 0;
|
m_fTimeLeftInState = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// lua start
|
||||||
|
#include "LuaBinding.h"
|
||||||
|
|
||||||
|
class LunaMusicWheel: public Luna<MusicWheel>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
static int IsRouletting( T* p, lua_State *L ){ lua_pushboolean( L, p->IsRouletting() ); return 1; }
|
||||||
|
|
||||||
|
LunaMusicWheel()
|
||||||
|
{
|
||||||
|
ADD_METHOD( IsRouletting );
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (c) 2001-2004 Chris Danford, Chris Gomez, Glenn Maynard
|
* (c) 2001-2004 Chris Danford, Chris Gomez, Glenn Maynard
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
@@ -521,6 +521,7 @@ public:
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
static int GetNumWheelItems( T* p, lua_State *L ){ lua_pushnumber( L, p->GetNumItems() ); return 1; }
|
||||||
static int IsSettled( T* p, lua_State *L ){ lua_pushboolean( L, p->IsSettled() ); return 1; }
|
static int IsSettled( T* p, lua_State *L ){ lua_pushboolean( L, p->IsSettled() ); return 1; }
|
||||||
static int IsLocked( T* p, lua_State *L ){ lua_pushboolean( L, p->WheelIsLocked() ); return 1; }
|
static int IsLocked( T* p, lua_State *L ){ lua_pushboolean( L, p->WheelIsLocked() ); return 1; }
|
||||||
static int SetOpenSection( T* p, lua_State *L ){ p->SetOpenSection( SArg(1) ); return 0; }
|
static int SetOpenSection( T* p, lua_State *L ){ p->SetOpenSection( SArg(1) ); return 0; }
|
||||||
@@ -538,6 +539,7 @@ public:
|
|||||||
LunaWheelBase()
|
LunaWheelBase()
|
||||||
{
|
{
|
||||||
ADD_METHOD( GetWheelItem );
|
ADD_METHOD( GetWheelItem );
|
||||||
|
ADD_METHOD( GetNumWheelItems );
|
||||||
ADD_METHOD( IsSettled );
|
ADD_METHOD( IsSettled );
|
||||||
ADD_METHOD( IsLocked );
|
ADD_METHOD( IsLocked );
|
||||||
ADD_METHOD( SetOpenSection );
|
ADD_METHOD( SetOpenSection );
|
||||||
|
|||||||
Reference in New Issue
Block a user