2012-09-02 17:55:08 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
extern "C" {
|
2012-09-06 18:49:50 -05:00
|
|
|
#include "lua.h"
|
|
|
|
#include "lauxlib.h"
|
|
|
|
#include "lualib.h"
|
2012-09-02 17:55:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#include "LuaLuna.h"
|
|
|
|
|
|
|
|
namespace ui
|
|
|
|
{
|
|
|
|
class Component;
|
|
|
|
}
|
|
|
|
|
|
|
|
class LuaScriptInterface;
|
|
|
|
|
|
|
|
class LuaComponent
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
ui::Component * component;
|
|
|
|
lua_State * l;
|
|
|
|
int position(lua_State * l);
|
|
|
|
int size(lua_State * l);
|
|
|
|
int visible(lua_State * l);
|
|
|
|
public:
|
|
|
|
LuaScriptInterface * ci;
|
|
|
|
int UserData;
|
|
|
|
|
|
|
|
ui::Component * GetComponent() { return component; }
|
|
|
|
LuaComponent(lua_State * l);
|
|
|
|
~LuaComponent();
|
|
|
|
};
|