static int AddResetItemListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Common.UI.Components.ScrollContentExpand obj = (Common.UI.Components.ScrollContentExpand)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.ScrollContentExpand)); UnityEngine.Events.UnityAction <UnityEngine.GameObject, int> arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (UnityEngine.Events.UnityAction <UnityEngine.GameObject, int>)ToLua.CheckObject(L, 2, typeof(UnityEngine.Events.UnityAction <UnityEngine.GameObject, int>)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Events.UnityAction <UnityEngine.GameObject, int>), func) as UnityEngine.Events.UnityAction <UnityEngine.GameObject, int>; } obj.AddResetItemListener(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RefreshAllContentItems(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Common.UI.Components.ScrollContentExpand obj = (Common.UI.Components.ScrollContentExpand)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.ScrollContentExpand)); obj.RefreshAllContentItems(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ScrollToBottom(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Common.UI.Components.ScrollContentExpand obj = (Common.UI.Components.ScrollContentExpand)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.ScrollContentExpand)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.ScrollToBottom(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RefreshCount(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); Common.UI.Components.ScrollContentExpand obj = (Common.UI.Components.ScrollContentExpand)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.ScrollContentExpand)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.RefreshCount(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); Common.UI.Components.ScrollContentExpand obj = (Common.UI.Components.ScrollContentExpand)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.ScrollContentExpand)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); float arg2 = (float)LuaDLL.luaL_checknumber(L, 4); obj.Init(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_scrollRect(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Common.UI.Components.ScrollContentExpand obj = (Common.UI.Components.ScrollContentExpand)o; UnityEngine.UI.ScrollRect ret = obj.scrollRect; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scrollRect on a nil value" : e.Message)); } }