28 lines
486 B
C++
28 lines
486 B
C++
#pragma once
|
|
|
|
#include "LuaLuna.h"
|
|
#include "LuaComponent.h"
|
|
|
|
namespace ui
|
|
{
|
|
class Textbox;
|
|
}
|
|
|
|
class LuaScriptInterface;
|
|
|
|
class LuaTextbox: public LuaComponent
|
|
{
|
|
LuaComponentCallback onTextChangedFunction;
|
|
ui::Textbox * textbox;
|
|
int text(lua_State * l);
|
|
int readonly(lua_State * l);
|
|
int onTextChanged(lua_State * l);
|
|
void triggerOnTextChanged();
|
|
public:
|
|
static const char className[];
|
|
static Luna<LuaTextbox>::RegType methods[];
|
|
|
|
LuaTextbox(lua_State * l);
|
|
~LuaTextbox();
|
|
};
|