33 lines
539 B
C
33 lines
539 B
C
|
#pragma once
|
||
|
|
||
|
extern "C" {
|
||
|
#include "lua.h"
|
||
|
#include "lauxlib.h"
|
||
|
#include "lualib.h"
|
||
|
}
|
||
|
|
||
|
#include "LuaLuna.h"
|
||
|
#include "LuaComponent.h"
|
||
|
|
||
|
namespace ui
|
||
|
{
|
||
|
class Slider;
|
||
|
}
|
||
|
|
||
|
class LuaScriptInterface;
|
||
|
|
||
|
class LuaSlider: public LuaComponent
|
||
|
{
|
||
|
ui::Slider * slider;
|
||
|
int onValueChangedFunction;
|
||
|
void triggerOnValueChanged();
|
||
|
int onValueChanged(lua_State * l);
|
||
|
int steps(lua_State * l);
|
||
|
int value(lua_State * l);
|
||
|
public:
|
||
|
static const char className[];
|
||
|
static Luna<LuaSlider>::RegType methods[];
|
||
|
|
||
|
LuaSlider(lua_State * l);
|
||
|
~LuaSlider();
|
||
|
};
|