static StackObject *ApplyPanelOrder_34(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, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            FairyGUI.Container @target = (FairyGUI.Container) typeof(FairyGUI.Container).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            FairyGUI.Stage instance_of_this_method = (FairyGUI.Stage) typeof(FairyGUI.Stage).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ApplyPanelOrder(@target);

            return(__ret);
        }
Esempio n. 2
0
        static int _m_RemoveChildAt(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _index = LuaAPI.xlua_tointeger(L, 2);

                    FairyGUI.DisplayObject gen_ret = gen_to_be_invoked.RemoveChildAt(
                        _index);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    int  _index   = LuaAPI.xlua_tointeger(L, 2);
                    bool _dispose = LuaAPI.lua_toboolean(L, 3);

                    FairyGUI.DisplayObject gen_ret = gen_to_be_invoked.RemoveChildAt(
                        _index,
                        _dispose);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.Container.RemoveChildAt!"));
        }
        static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Dispose(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_GetHitTestLocalPoint(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Vector2 gen_ret = gen_to_be_invoked.GetHitTestLocalPoint(  );
                    translator.PushUnityEngineVector2(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 5
0
        static int _m_GetChildren(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.DisplayObject[] gen_ret = gen_to_be_invoked.GetChildren(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 6
0
        static int _m_ApplyPanelOrder(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Stage gen_to_be_invoked = (FairyGUI.Stage)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.Container _target = (FairyGUI.Container)translator.GetObject(L, 2, typeof(FairyGUI.Container));

                    gen_to_be_invoked.ApplyPanelOrder(_target);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_Update(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.UpdateContext _context = (FairyGUI.UpdateContext)translator.GetObject(L, 2, typeof(FairyGUI.UpdateContext));

                    gen_to_be_invoked.Update(_context);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_SetChildrenLayer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    int _value = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.SetChildrenLayer(_value);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_InvalidateBatchingState(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    bool _childrenChanged = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.InvalidateBatchingState(_childrenChanged);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_IsAncestorOf(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.DisplayObject _obj = (FairyGUI.DisplayObject)translator.GetObject(L, 2, typeof(FairyGUI.DisplayObject));

                    bool gen_ret = gen_to_be_invoked.IsAncestorOf(_obj);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_GetBounds(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.DisplayObject _targetSpace = (FairyGUI.DisplayObject)translator.GetObject(L, 2, typeof(FairyGUI.DisplayObject));

                    UnityEngine.Rect gen_ret = gen_to_be_invoked.GetBounds(_targetSpace);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_ChangeChildrenOrder(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    System.Collections.Generic.List <int> _indice = (System.Collections.Generic.List <int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <int>));
                    System.Collections.Generic.List <FairyGUI.DisplayObject> _objs = (System.Collections.Generic.List <FairyGUI.DisplayObject>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <FairyGUI.DisplayObject>));

                    gen_to_be_invoked.ChangeChildrenOrder(_indice, _objs);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_SwapChildren(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.DisplayObject _child1 = (FairyGUI.DisplayObject)translator.GetObject(L, 2, typeof(FairyGUI.DisplayObject));
                    FairyGUI.DisplayObject _child2 = (FairyGUI.DisplayObject)translator.GetObject(L, 3, typeof(FairyGUI.DisplayObject));

                    gen_to_be_invoked.SwapChildren(_child1, _child2);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_SetChildIndex(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.DisplayObject _child = (FairyGUI.DisplayObject)translator.GetObject(L, 2, typeof(FairyGUI.DisplayObject));
                    int _index = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.SetChildIndex(_child, _index);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 15
0
        static int _m_GetDescendants(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.Container gen_to_be_invoked = (FairyGUI.Container)translator.FastGetCSObj(L, 1);



                {
                    bool _backward = LuaAPI.lua_toboolean(L, 2);

                    System.Collections.Generic.IEnumerator <FairyGUI.DisplayObject> gen_ret = gen_to_be_invoked.GetDescendants(_backward);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }