예제 #1
0
    static int SetListItemCount(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
                int arg0 = (int)LuaDLL.luaL_checkinteger(L, 2);
                obj.SetListItemCount(arg0);
                return(0);
            }
            else if (count == 3)
            {
                SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
                int  arg0 = (int)LuaDLL.luaL_checkinteger(L, 2);
                bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
                obj.SetListItemCount(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: SuperScrollView.LoopListView2.SetListItemCount"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
예제 #2
0
    static int set_mOnSnapNearestChanged(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)o;
            System.Action <SuperScrollView.LoopListView2, SuperScrollView.LoopListViewItem2> arg0 = (System.Action <SuperScrollView.LoopListView2, SuperScrollView.LoopListViewItem2>)ToLua.CheckDelegate <System.Action <SuperScrollView.LoopListView2, SuperScrollView.LoopListViewItem2> >(L, 2);

            if (!object.ReferenceEquals(obj.mOnSnapNearestChanged, arg0))
            {
                if (obj.mOnSnapNearestChanged != null)
                {
                    obj.mOnSnapNearestChanged.SubRef();
                }
                obj.mOnSnapNearestChanged = arg0;
            }

            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mOnSnapNearestChanged on a nil value"));
        }
    }
예제 #3
0
    static int set_mOnBeginDragAction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)o;
            System.Action arg0 = (System.Action)ToLua.CheckDelegate <System.Action>(L, 2);

            if (!object.ReferenceEquals(obj.mOnBeginDragAction, arg0))
            {
                if (obj.mOnBeginDragAction != null)
                {
                    obj.mOnBeginDragAction.SubRef();
                }
                obj.mOnBeginDragAction = arg0;
            }

            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mOnBeginDragAction on a nil value"));
        }
    }
예제 #4
0
    static int GetItemCornerPosInViewPort(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                SuperScrollView.LoopListView2     obj  = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
                SuperScrollView.LoopListViewItem2 arg0 = (SuperScrollView.LoopListViewItem2)ToLua.CheckObject <SuperScrollView.LoopListViewItem2>(L, 2);
                UnityEngine.Vector3 o = obj.GetItemCornerPosInViewPort(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 3)
            {
                SuperScrollView.LoopListView2     obj  = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
                SuperScrollView.LoopListViewItem2 arg0 = (SuperScrollView.LoopListViewItem2)ToLua.CheckObject <SuperScrollView.LoopListViewItem2>(L, 2);
                SuperScrollView.ItemCornerEnum    arg1 = (SuperScrollView.ItemCornerEnum)ToLua.CheckObject(L, 3, TypeTraits <SuperScrollView.ItemCornerEnum> .type);
                UnityEngine.Vector3 o = obj.GetItemCornerPosInViewPort(arg0, arg1);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: SuperScrollView.LoopListView2.GetItemCornerPosInViewPort"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
        static StackObject *InitListView_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            SuperScrollView.LoopListViewInitParam @initParam = (SuperScrollView.LoopListViewInitParam) typeof(SuperScrollView.LoopListViewInitParam).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Func <SuperScrollView.LoopListView2, System.Int32, SuperScrollView.LoopListViewItem2> @onGetItemByIndex = (System.Func <SuperScrollView.LoopListView2, System.Int32, SuperScrollView.LoopListViewItem2>) typeof(System.Func <SuperScrollView.LoopListView2, System.Int32, SuperScrollView.LoopListViewItem2>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 8);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.Int32 @itemTotalCount = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            SuperScrollView.LoopListView2 instance_of_this_method = (SuperScrollView.LoopListView2) typeof(SuperScrollView.LoopListView2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.InitListView(@itemTotalCount, @onGetItemByIndex, @initParam);

            return(__ret);
        }
예제 #6
0
 static int UpdateAllShownItemSnapData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         obj.UpdateAllShownItemSnapData();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
        static StackObject *ClearListView_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            SuperScrollView.LoopListView2 instance_of_this_method = (SuperScrollView.LoopListView2) typeof(SuperScrollView.LoopListView2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ClearListView();

            return(__ret);
        }
예제 #8
0
 static int ForceSnapUpdateCheck(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         obj.ForceSnapUpdateCheck();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int OnItemSizeChanged(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.OnItemSizeChanged(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #10
0
 static int SetSnapTargetItemIndex(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checkinteger(L, 2);
         obj.SetSnapTargetItemIndex(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #11
0
 static int OnItemPrefabChanged(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.OnItemPrefabChanged(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #12
0
 static int OnDrag(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SuperScrollView.LoopListView2             obj  = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L, 2);
         obj.OnDrag(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #13
0
 static int RefreshAllShownItemWithFirstIndex(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checkinteger(L, 2);
         obj.RefreshAllShownItemWithFirstIndex(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #14
0
 static int GetItemPrefabList(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         System.Collections.Generic.List <SuperScrollView.ItemPrefabConfData> o = obj.GetItemPrefabList();
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #15
0
 static int GetItemPrefabConfData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         SuperScrollView.ItemPrefabConfData o = obj.GetItemPrefabConfData(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #16
0
 static int DestroyListView(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         LuaTable    arg0 = ToLua.CheckLuaTable(L, 2);
         LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
         obj.DestroyListView(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #17
0
 static int GetShownItemByIndexWithoutCheck(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checkinteger(L, 2);
         SuperScrollView.LoopListViewItem2 o = obj.GetShownItemByIndexWithoutCheck(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #18
0
 static int GetIndexInShownItemList(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SuperScrollView.LoopListView2     obj  = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         SuperScrollView.LoopListViewItem2 arg0 = (SuperScrollView.LoopListViewItem2)ToLua.CheckObject <SuperScrollView.LoopListViewItem2>(L, 2);
         int o = obj.GetIndexInShownItemList(arg0);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #19
0
 static int DoActionForEachShownItem(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         System.Action <SuperScrollView.LoopListViewItem2, object> arg0 = (System.Action <SuperScrollView.LoopListViewItem2, object>)ToLua.CheckDelegate <System.Action <SuperScrollView.LoopListViewItem2, object> >(L, 2);
         object arg1 = ToLua.ToVarObject(L, 3);
         obj.DoActionForEachShownItem(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #20
0
 static int NewListViewItem(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         SuperScrollView.LoopListViewItem2 o = obj.NewListViewItem(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #21
0
 static int MovePanelToItemIndex(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         int   arg0 = (int)LuaDLL.luaL_checkinteger(L, 2);
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         obj.MovePanelToItemIndex(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int RefreshAllShownItemWithFirstIndexAndPos(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 3);
         obj.RefreshAllShownItemWithFirstIndexAndPos(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_ParentListView(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListViewItem2 obj  = (SuperScrollView.LoopListViewItem2)o;
            SuperScrollView.LoopListView2     arg0 = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 2);
            obj.ParentListView = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ParentListView on a nil value"));
        }
    }
    static int get_ParentListView(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListViewItem2 obj = (SuperScrollView.LoopListViewItem2)o;
            SuperScrollView.LoopListView2     ret = obj.ParentListView;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ParentListView on a nil value"));
        }
    }
예제 #25
0
    static int get_ContainerTrans(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)o;
            UnityEngine.RectTransform     ret = obj.ContainerTrans;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ContainerTrans on a nil value"));
        }
    }
예제 #26
0
    static int get_CurSnapNearestItemIndex(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)o;
            int ret = obj.CurSnapNearestItemIndex;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CurSnapNearestItemIndex on a nil value"));
        }
    }
예제 #27
0
    static int get_ViewPortHeight(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)o;
            float ret = obj.ViewPortHeight;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ViewPortHeight on a nil value"));
        }
    }
예제 #28
0
    static int get_ShownItemCount(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)o;
            int ret = obj.ShownItemCount;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ShownItemCount on a nil value"));
        }
    }
예제 #29
0
    static int get_SupportScrollBar(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)o;
            bool ret = obj.SupportScrollBar;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index SupportScrollBar on a nil value"));
        }
    }
예제 #30
0
    static int get_ScrollRect(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)o;
            UnityEngine.UI.ScrollRect     ret = obj.ScrollRect;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollRect on a nil value"));
        }
    }