CLuaInstance: Add setText function to ctext

This commit is contained in:
M. Liebmann
2014-03-16 11:56:57 +01:00
parent 81608cbd3f
commit 4df0449e39
2 changed files with 27 additions and 2 deletions

View File

@@ -139,7 +139,8 @@ class CLuaComponentsText
public:
CComponentsText *ct;
CComponentsForm *parent;
CLuaComponentsText() { ct = NULL; parent = NULL;}
int mode, font_text;
CLuaComponentsText() { ct = NULL; parent = NULL; mode = 0; font_text = 0;}
~CLuaComponentsText() { if (parent == NULL) delete ct; }
};
@@ -214,6 +215,7 @@ private:
static int ComponentsTextNew(lua_State *L);
static int ComponentsTextPaint(lua_State *L);
static int ComponentsTextHide(lua_State *L);
static int ComponentsTextSetText(lua_State *L);
static int ComponentsTextScroll(lua_State *L);
static int ComponentsTextDelete(lua_State *L);