28 lines
471 B
C++
28 lines
471 B
C++
#pragma once
|
|
|
|
#include "LuaLuna.h"
|
|
#include "LuaComponent.h"
|
|
|
|
namespace ui
|
|
{
|
|
class Checkbox;
|
|
}
|
|
|
|
class LuaScriptInterface;
|
|
|
|
class LuaCheckbox: public LuaComponent
|
|
{
|
|
ui::Checkbox * checkbox;
|
|
LuaComponentCallback actionFunction;
|
|
void triggerAction();
|
|
int action(lua_State * l);
|
|
int checked(lua_State * l);
|
|
int text(lua_State * l);
|
|
public:
|
|
static const char className[];
|
|
static Luna<LuaCheckbox>::RegType methods[];
|
|
|
|
LuaCheckbox(lua_State * l);
|
|
~LuaCheckbox();
|
|
};
|