void Start() { _mainView = this.GetComponent<UIPanel>().ui; BlurFilter blurFilter = new BlurFilter(); blurFilter.blurSize = 2; _mainView.GetChild("n21").filter = blurFilter; _s0 = _mainView.GetChild("s0").asSlider; _s1 = _mainView.GetChild("s1").asSlider; _s2 = _mainView.GetChild("s2").asSlider; _s3 = _mainView.GetChild("s3").asSlider; _s4 = _mainView.GetChild("s4").asSlider; _s0.value = 100; _s1.value = 100; _s2.value = 100; _s3.value = 200; _s4.value = 20; _s0.onChanged.Add(__sliderChanged); _s1.onChanged.Add(__sliderChanged); _s2.onChanged.Add(__sliderChanged); _s3.onChanged.Add(__sliderChanged); _s4.onChanged.Add(__sliderChanged); }
static public int ConstructFromXML(IntPtr l) { try { FairyGUI.GSlider self = (FairyGUI.GSlider)checkSelf(l); FairyGUI.Utils.XML a1; checkType(l, 2, out a1); self.ConstructFromXML(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_value(IntPtr l) { try { FairyGUI.GSlider self = (FairyGUI.GSlider)checkSelf(l); float v; checkType(l, 2, out v); self.value = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int Setup_AfterAdd(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.GSlider obj = (FairyGUI.GSlider)ToLua.CheckObject <FairyGUI.GSlider>(L, 1); FairyGUI.Utils.XML arg0 = (FairyGUI.Utils.XML)ToLua.CheckObject <FairyGUI.Utils.XML>(L, 2); obj.Setup_AfterAdd(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ConstructFromXML(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.GSlider obj = (FairyGUI.GSlider)ToLua.CheckObject(L, 1, typeof(FairyGUI.GSlider)); FairyGUI.Utils.XML arg0 = (FairyGUI.Utils.XML)ToLua.CheckObject(L, 2, typeof(FairyGUI.Utils.XML)); obj.ConstructFromXML(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Setup_AfterAdd(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyGUI.GSlider obj = (FairyGUI.GSlider)ToLua.CheckObject <FairyGUI.GSlider>(L, 1); FairyGUI.Utils.ByteBuffer arg0 = (FairyGUI.Utils.ByteBuffer)ToLua.CheckObject <FairyGUI.Utils.ByteBuffer>(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.Setup_AfterAdd(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_value(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GSlider obj = (FairyGUI.GSlider)o; double ret = obj.value; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index value on a nil value")); } }
static int get_titleType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GSlider obj = (FairyGUI.GSlider)o; FairyGUI.ProgressTitleType ret = obj.titleType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index titleType on a nil value")); } }
static int set_max(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GSlider obj = (FairyGUI.GSlider)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.max = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index max on a nil value" : e.Message)); } }
static int get_max(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GSlider obj = (FairyGUI.GSlider)o; float ret = obj.max; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index max on a nil value" : e.Message)); } }
static int set_canDrag(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GSlider obj = (FairyGUI.GSlider)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.canDrag = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index canDrag on a nil value")); } }
static int get_changeOnClick(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GSlider obj = (FairyGUI.GSlider)o; bool ret = obj.changeOnClick; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index changeOnClick on a nil value")); } }
static int get_onGripTouchEnd(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GSlider obj = (FairyGUI.GSlider)o; FairyGUI.EventListener ret = obj.onGripTouchEnd; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onGripTouchEnd on a nil value")); } }
static int set_titleType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GSlider obj = (FairyGUI.GSlider)o; FairyGUI.ProgressTitleType arg0 = (FairyGUI.ProgressTitleType)ToLua.CheckObject(L, 2, typeof(FairyGUI.ProgressTitleType)); obj.titleType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index titleType on a nil value")); } }
static int set_value(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GSlider obj = (FairyGUI.GSlider)o; double arg0 = (double)LuaDLL.luaL_checknumber(L, 2); obj.value = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index value on a nil value")); } }
void Start() { _mainView = this.GetComponent<UIPanel>().ui; _s0 = _mainView.GetChild("s0").asSlider; _s1 = _mainView.GetChild("s1").asSlider; _s2 = _mainView.GetChild("s2").asSlider; _s3 = _mainView.GetChild("s3").asSlider; _s0.value = 100; _s1.value = 100; _s2.value = 100; _s3.value = 200; _s0.onChanged.Add(__sliderChanged); _s1.onChanged.Add(__sliderChanged); _s2.onChanged.Add(__sliderChanged); _s3.onChanged.Add(__sliderChanged); }
static int _CreateFairyGUI_GSlider(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { FairyGUI.GSlider obj = new FairyGUI.GSlider(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.GSlider.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }