Example #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _hasChild = LuaAPI.lua_toboolean(L, 2);

                    FairyGUI.GTreeNode gen_ret = new FairyGUI.GTreeNode(_hasChild);
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    bool   _hasChild = LuaAPI.lua_toboolean(L, 2);
                    string _resURL   = LuaAPI.lua_tostring(L, 3);

                    FairyGUI.GTreeNode gen_ret = new FairyGUI.GTreeNode(_hasChild, _resURL);
                    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.GTreeNode constructor!"));
        }
Example #2
0
        static int _m_CollapseAll(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.CollapseAll(  );



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <FairyGUI.GTreeNode>(L, 2))
                {
                    FairyGUI.GTreeNode _folderNode = (FairyGUI.GTreeNode)translator.GetObject(L, 2, typeof(FairyGUI.GTreeNode));

                    gen_to_be_invoked.CollapseAll(_folderNode);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GTree.CollapseAll!"));
        }
Example #3
0
        static int _m_AddChildAt(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



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

                    FairyGUI.GTreeNode gen_ret = gen_to_be_invoked.AddChildAt(_child, _index);
                    translator.Push(L, gen_ret);



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

                FairyGUI.GTreeNode gen_to_be_invoked = (FairyGUI.GTreeNode)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.data = translator.GetObject(L, 2, typeof(object));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #5
0
        static int _s_set_icon(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.GTreeNode gen_to_be_invoked = (FairyGUI.GTreeNode)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.icon = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #6
0
        static int _g_get_data(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.GTreeNode gen_to_be_invoked = (FairyGUI.GTreeNode)translator.FastGetCSObj(L, 1);
                translator.PushAny(L, gen_to_be_invoked.data);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Example #7
0
        static int _m_RemoveChildren(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

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

                    gen_to_be_invoked.RemoveChildren(_beginIndex, _endIndex);



                    return(0);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _beginIndex = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.RemoveChildren(_beginIndex);



                    return(0);
                }
                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.RemoveChildren(  );



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

            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GTreeNode.RemoveChildren!"));
        }
Example #8
0
        static int _m_ExpandToRoot(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.ExpandToRoot(  );



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


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



                {
                    FairyGUI.GTreeNode gen_ret = gen_to_be_invoked.GetSelectedNode(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Example #10
0
        public void __Gen_Delegate_Imp12(FairyGUI.GTreeNode p0, bool p1)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int errFunc    = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
            ObjectTranslator translator = luaEnv.translator;
            translator.Push(L, p0);
            LuaAPI.lua_pushboolean(L, p1);

            PCall(L, 2, 0, errFunc);



            LuaAPI.lua_settop(L, errFunc - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Example #11
0
        static int _m_SelectNode(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <FairyGUI.GTreeNode>(L, 2))
                {
                    FairyGUI.GTreeNode _node = (FairyGUI.GTreeNode)translator.GetObject(L, 2, typeof(FairyGUI.GTreeNode));

                    gen_to_be_invoked.SelectNode(_node);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <FairyGUI.GTreeNode>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    FairyGUI.GTreeNode _node = (FairyGUI.GTreeNode)translator.GetObject(L, 2, typeof(FairyGUI.GTreeNode));
                    bool _scrollItToView     = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.SelectNode(_node, _scrollItToView);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GTree.SelectNode!"));
        }
Example #12
0
        static int _m_UnselectNode(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    FairyGUI.GTreeNode _node = (FairyGUI.GTreeNode)translator.GetObject(L, 2, typeof(FairyGUI.GTreeNode));

                    gen_to_be_invoked.UnselectNode(_node);



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


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



                {
                    int _index1 = LuaAPI.xlua_tointeger(L, 2);
                    int _index2 = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.SwapChildrenAt(_index1, _index2);



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


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



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

                    gen_to_be_invoked.SwapChildren(_child1, _child2);



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