#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::RegType methods[]; LuaSlider(lua_State * l); ~LuaSlider(); };