static int reset(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UIPanelEX obj = (UIPanelEX)ToLua.CheckObject(L, 1, typeof(UIPanelEX)); obj.reset(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_tsartSpanY(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIPanelEX obj = (UIPanelEX)o; float ret = obj.tsartSpanY; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index tsartSpanY on a nil value" : e.Message)); } }
static int CalculateConstrainOffset(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIPanelEX obj = (UIPanelEX)ToLua.CheckObject(L, 1, typeof(UIPanelEX)); UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2); UnityEngine.Vector2 arg1 = ToLua.ToVector2(L, 3); UnityEngine.Vector3 o = obj.CalculateConstrainOffset(arg0, arg1); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_tsartSpanY(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIPanelEX obj = (UIPanelEX)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.tsartSpanY = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index tsartSpanY on a nil value" : e.Message)); } }
protected override void OnEnable() { base.OnEnable(); mPanel = target as UIPanelEX; }