static int CancelSpring(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UIDragObjectEX obj = (UIDragObjectEX)ToLua.CheckObject(L, 1, typeof(UIDragObjectEX)); obj.CancelSpring(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_panelRegion(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; UIPanel ret = obj.panelRegion; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index panelRegion on a nil value" : e.Message)); } }
static int get_target(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; UnityEngine.Transform ret = obj.target; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message)); } }
static int set_func(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2); obj.func = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index func on a nil value" : e.Message)); } }
static int set_dragMovement(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.dragMovement = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dragMovement on a nil value" : e.Message)); } }
static int set_dragEffect(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; UIDragObjectEX.DragEffect arg0 = (UIDragObjectEX.DragEffect)ToLua.CheckObject(L, 2, typeof(UIDragObjectEX.DragEffect)); obj.dragEffect = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dragEffect on a nil value" : e.Message)); } }
static int set_momentumAmount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.momentumAmount = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index momentumAmount on a nil value" : e.Message)); } }
static int set_panelRegion(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; UIPanel arg0 = (UIPanel)ToLua.CheckUnityObject(L, 2, typeof(UIPanel)); obj.panelRegion = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index panelRegion on a nil value" : e.Message)); } }
static int set_restrictWithinPanel(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.restrictWithinPanel = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index restrictWithinPanel on a nil value" : e.Message)); } }
static int set_target(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform)); obj.target = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message)); } }
static int get_func(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; LuaInterface.LuaFunction ret = obj.func; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index func on a nil value" : e.Message)); } }
static int get_momentumAmount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; float ret = obj.momentumAmount; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index momentumAmount on a nil value" : e.Message)); } }
static int get_restrictWithinPanel(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; bool ret = obj.restrictWithinPanel; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index restrictWithinPanel on a nil value" : e.Message)); } }
static int get_scrollMomentum(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragObjectEX obj = (UIDragObjectEX)o; UnityEngine.Vector3 ret = obj.scrollMomentum; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scrollMomentum on a nil value" : e.Message)); } }