deprecate WheelBase:IsLocked() now that GetWheelState() exists

This commit is contained in:
AJ Kelly
2012-03-08 18:48:17 -06:00
parent 00a76ac1f9
commit ae20fbf2a0
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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 );