static int InitAllChild(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ScrollViewLoop obj = (ScrollViewLoop)ToLua.CheckObject(L, 1, typeof(ScrollViewLoop)); obj.InitAllChild(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCurrentIndex(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ScrollViewLoop obj = (ScrollViewLoop)ToLua.CheckObject(L, 1, typeof(ScrollViewLoop)); int o = obj.GetCurrentIndex(); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetPage(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ScrollViewLoop obj = (ScrollViewLoop)ToLua.CheckObject(L, 1, typeof(ScrollViewLoop)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.SetPage(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnEndDrag(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ScrollViewLoop obj = (ScrollViewLoop)ToLua.CheckObject(L, 1, typeof(ScrollViewLoop)); UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); obj.OnEndDrag(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ScrollViewLoopItem obj = (ScrollViewLoopItem)ToLua.CheckObject(L, 1, typeof(ScrollViewLoopItem)); ScrollViewLoop arg0 = (ScrollViewLoop)ToLua.CheckUnityObject(L, 2, typeof(ScrollViewLoop)); obj.Init(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void Init(ScrollViewLoop _parent) { rect = GetComponent <RectTransform>(); parent = _parent; if (kBgcountdown == null) { kBgcountdown = transform.FindChild("bgcountdown").gameObject; } if (kLinecountdown == null) { kLinecountdown = transform.FindChild("linecountdown").gameObject; } kBgcountdown.SetActive(false); kLinecountdown.SetActive(false); kLinecountdown.transform.localPosition = Vector3.zero; }
static int GetItemIndex(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ScrollViewLoop obj = (ScrollViewLoop)ToLua.CheckObject(L, 1, typeof(ScrollViewLoop)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); UnityEngine.Transform o = obj.GetItemIndex(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetPosition(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ScrollViewLoop obj = (ScrollViewLoop)ToLua.CheckObject(L, 1, typeof(ScrollViewLoop)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); UnityEngine.Vector2 o = obj.GetPosition(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_TurnPage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ScrollViewLoop obj = (ScrollViewLoop)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.TurnPage = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index TurnPage on a nil value" : e.Message)); } }
static int set_PositionYCurve(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ScrollViewLoop obj = (ScrollViewLoop)o; UnityEngine.AnimationCurve arg0 = (UnityEngine.AnimationCurve)ToLua.CheckObject(L, 2, typeof(UnityEngine.AnimationCurve)); obj.PositionYCurve = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index PositionYCurve on a nil value" : e.Message)); } }
static int get_TurnPage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ScrollViewLoop obj = (ScrollViewLoop)o; bool ret = obj.TurnPage; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index TurnPage on a nil value" : e.Message)); } }
static int get_PositionYCurve(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ScrollViewLoop obj = (ScrollViewLoop)o; UnityEngine.AnimationCurve ret = obj.PositionYCurve; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index PositionYCurve on a nil value" : e.Message)); } }
static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); ScrollViewLoop obj = (ScrollViewLoop)ToLua.CheckObject(L, 1, typeof(ScrollViewLoop)); System.Action arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (System.Action)ToLua.CheckObject(L, 2, typeof(System.Action)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action; } System.Action arg1 = null; LuaTypes funcType3 = LuaDLL.lua_type(L, 3); if (funcType3 != LuaTypes.LUA_TFUNCTION) { arg1 = (System.Action)ToLua.CheckObject(L, 3, typeof(System.Action)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 3); arg1 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action; } obj.Init(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }