Пример #1
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!"));
        }
Пример #2
0
        static int _s_set_treeNodeWillExpand(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.GTree gen_to_be_invoked = (FairyGUI.GTree)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.treeNodeWillExpand = translator.GetDelegate <FairyGUI.GTree.TreeNodeWillExpandDelegate>(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Пример #3
0
        static int _s_set_clickToExpand(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.GTree gen_to_be_invoked = (FairyGUI.GTree)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.clickToExpand = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Пример #4
0
        static int _g_get_treeNodeWillExpand(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.GTree gen_to_be_invoked = (FairyGUI.GTree)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.treeNodeWillExpand);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Пример #5
0
        static int _g_get_indent(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.GTree gen_to_be_invoked = (FairyGUI.GTree)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.indent);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Пример #6
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    FairyGUI.GTree gen_ret = new FairyGUI.GTree();
                    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.GTree constructor!"));
        }
Пример #7
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));
            }
        }
Пример #8
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!"));
        }
Пример #9
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));
            }
        }
Пример #10
0
        static int _m_GetSelectedNodes(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)
                {
                    System.Collections.Generic.List <FairyGUI.GTreeNode> gen_ret = gen_to_be_invoked.GetSelectedNodes(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <FairyGUI.GTreeNode> >(L, 2))
                {
                    System.Collections.Generic.List <FairyGUI.GTreeNode> _result = (System.Collections.Generic.List <FairyGUI.GTreeNode>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <FairyGUI.GTreeNode>));

                    System.Collections.Generic.List <FairyGUI.GTreeNode> gen_ret = gen_to_be_invoked.GetSelectedNodes(_result);
                    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.GTree.GetSelectedNodes!"));
        }
Пример #11
0
        static int _m_Setup_BeforeAdd(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    FairyGUI.Utils.ByteBuffer _buffer = (FairyGUI.Utils.ByteBuffer)translator.GetObject(L, 2, typeof(FairyGUI.Utils.ByteBuffer));
                    int _beginPos = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.Setup_BeforeAdd(_buffer, _beginPos);



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