The-Powder-Toy/src/lua/LuaSlider.h
jacob1 6749c2547f New SConscript (hopefully better)
Fixes a lot of bugs, also almost all options are no longer needed and are just auto-detected
2014-06-08 19:33:58 -04:00

28 lines
463 B
C++

#pragma once
#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();
};