add settext lua method
This commit is contained in:
@@ -17,11 +17,13 @@ public:
|
|||||||
|
|
||||||
static int wrapwidthpixels( T* p, lua_State *L ) { p->SetWrapWidthPixels( IArg(1) ); return 0; }
|
static int wrapwidthpixels( T* p, lua_State *L ) { p->SetWrapWidthPixels( IArg(1) ); return 0; }
|
||||||
static int maxwidth( T* p, lua_State *L ) { p->SetMaxWidth( FArg(1) ); return 0; }
|
static int maxwidth( T* p, lua_State *L ) { p->SetMaxWidth( FArg(1) ); return 0; }
|
||||||
|
static int settext( T* p, lua_State *L ) { p->SetText( SArg(1) ); return 0; }
|
||||||
|
|
||||||
static void Register(lua_State *L)
|
static void Register(lua_State *L)
|
||||||
{
|
{
|
||||||
ADD_METHOD( wrapwidthpixels )
|
ADD_METHOD( wrapwidthpixels )
|
||||||
ADD_METHOD( maxwidth )
|
ADD_METHOD( maxwidth )
|
||||||
|
ADD_METHOD( settext )
|
||||||
LunaActor<T>::Register( L );
|
LunaActor<T>::Register( L );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user