Add GetHAlign and GetVAlign Lua bindings to Actor.

This commit is contained in:
AJ Kelly
2010-05-18 18:01:51 -05:00
parent 0c6e8bc360
commit 5903c2448a
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -1509,6 +1509,8 @@ public:
DEFINE_METHOD( GetDiffuse, GetDiffuse() )
static int GetDiffuseAlpha( T* p, lua_State *L ) { lua_pushnumber( L, p->GetDiffuseAlpha() ); return 1; }
static int GetVisible( T* p, lua_State *L ) { lua_pushboolean( L, p->GetVisible() ); return 1; }
static int GetHAlign( T* p, lua_State *L ) { lua_pushnumber( L, p->GetHorizAlign() ); return 1; }
static int GetVAlign( T* p, lua_State *L ) { lua_pushnumber( L, p->GetVertAlign() ); return 1; }
static int GetName( T* p, lua_State *L ) { lua_pushstring( L, p->GetName() ); return 1; }
static int GetParent( T* p, lua_State *L )
@@ -1673,6 +1675,8 @@ public:
ADD_METHOD( GetDiffuse );
ADD_METHOD( GetDiffuseAlpha );
ADD_METHOD( GetVisible );
ADD_METHOD( GetHAlign );
ADD_METHOD( GetVAlign );
ADD_METHOD( GetName );
ADD_METHOD( GetParent );