Function chaining for actors and singletons.
This commit is contained in:
+2
-3
@@ -526,7 +526,7 @@ int WheelBase::FirstVisibleIndex()
|
||||
class LunaWheelBase: public Luna<WheelBase>
|
||||
{
|
||||
public:
|
||||
static int Move( T* p, lua_State *L ){ p->Move( IArg(1) ); return 0; }
|
||||
static int Move( T* p, lua_State *L ){ p->Move( IArg(1) ); COMMON_RETURN_SELF; }
|
||||
static int GetWheelItem( T* p, lua_State *L )
|
||||
{
|
||||
int iItem = IArg(1);
|
||||
@@ -539,11 +539,10 @@ public:
|
||||
return 1;
|
||||
}
|
||||
static int IsSettled( T* p, lua_State *L ){ lua_pushboolean( L, p->IsSettled() ); 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) ); COMMON_RETURN_SELF; }
|
||||
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; }
|
||||
// evil shit
|
||||
//static int Move( T* p, lua_State *L ){ p->Move( IArg(1) ); return 0; }
|
||||
//static int ChangeMusic( T* p, lua_State *L ){ p->ChangeMusicUnlessLocked( IArg(1) ); return 0; }
|
||||
|
||||
DEFINE_METHOD( GetSelectedType, GetSelectedType() )
|
||||
|
||||
Reference in New Issue
Block a user