deprecate WheelBase:IsLocked() now that GetWheelState() exists
This commit is contained in:
@@ -14,7 +14,7 @@ StepMania 5.0 alpha 2 | 201203??
|
||||
* [MusicWheel] Added RouletteStopped message, which is broadcast when Roulette
|
||||
is finished and the wheel is locked. [AJ]
|
||||
* [WheelBase] Made WheelState a Lua-enabled enum and added
|
||||
GetWheelState() Lua binding. [AJ]
|
||||
GetWheelState() Lua binding. Deprecated IsLocked() Lua binding. [AJ]
|
||||
|
||||
2012/03/07
|
||||
----------
|
||||
|
||||
+3
-1
@@ -539,7 +539,6 @@ public:
|
||||
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 SetOpenSection( T* p, lua_State *L ){ p->SetOpenSection( SArg(1) ); return 0; }
|
||||
static int GetCurrentIndex( T* p, lua_State *L ){ lua_pushnumber( L, p->GetCurrentIndex() ); return 1; }
|
||||
static int GetNumItems( T* p, lua_State *L ){ lua_pushnumber( L, p->GetNumItems() ); return 1; }
|
||||
@@ -550,6 +549,9 @@ public:
|
||||
DEFINE_METHOD( GetSelectedType, GetSelectedType() )
|
||||
DEFINE_METHOD( GetWheelState, GetWheelState() )
|
||||
|
||||
// deprecated; use GetWheelState instead:
|
||||
static int IsLocked( T* p, lua_State *L ){ lua_pushboolean( L, p->WheelIsLocked() ); return 1; }
|
||||
|
||||
LunaWheelBase()
|
||||
{
|
||||
ADD_METHOD( GetWheelItem );
|
||||
|
||||
Reference in New Issue
Block a user