Example #1
0
        static int _m_ConstructFromXML(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.FUILoading gen_to_be_invoked = (DCET.Model.FUILoading)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.Utils.XML _xml = (FairyGUI.Utils.XML)translator.GetObject(L, 2, typeof(FairyGUI.Utils.XML));

                    gen_to_be_invoked.ConstructFromXML(_xml);



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


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



                {
                    FairyGUI.Utils.XML _xml = (FairyGUI.Utils.XML)translator.GetObject(L, 2, typeof(FairyGUI.Utils.XML));

                    gen_to_be_invoked.Add(_xml);



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


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



                {
                    string _aSource = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.Parse(_aSource);



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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    FairyGUI.Utils.XMLList.Enumerator gen_ret = gen_to_be_invoked.GetEnumerator(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string _selector = LuaAPI.lua_tostring(L, 2);

                    FairyGUI.Utils.XMLList.Enumerator gen_ret = gen_to_be_invoked.GetEnumerator(_selector);
                    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.Utils.XML.GetEnumerator!"));
        }
Example #5
0
        static int _m_Find(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    string _selector = LuaAPI.lua_tostring(L, 2);

                    FairyGUI.Utils.XML gen_ret = gen_to_be_invoked.Find(_selector);
                    translator.Push(L, gen_ret);



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


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



                {
                    string _attrName = LuaAPI.lua_tostring(L, 2);

                    bool gen_ret = gen_to_be_invoked.HasAttribute(_attrName);
                    LuaAPI.lua_pushboolean(L, gen_ret);



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


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



                {
                    string _attrName = LuaAPI.lua_tostring(L, 2);

                    UnityEngine.Vector2 gen_ret = gen_to_be_invoked.GetAttributeVector(_attrName);
                    translator.PushUnityEngineVector2(L, gen_ret);



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


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



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

                    string gen_ret = gen_to_be_invoked.ToXMLString(_includeHeader);
                    LuaAPI.lua_pushstring(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Example #9
0
 public override void ConstructFromXML(FairyGUI.Utils.XML xml)
 {
     base.ConstructFromXML(xml);
     trans   = this.GetTransition("t0");
     tipText = this.GetChild("tipText").asTextField;
 }
Example #10
0
        static int _m_SetAttribute(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    string _attrName  = LuaAPI.lua_tostring(L, 2);
                    bool   _attrValue = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.SetAttribute(_attrName, _attrValue);



                    return(0);
                }
                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    string _attrName  = LuaAPI.lua_tostring(L, 2);
                    int    _attrValue = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.SetAttribute(_attrName, _attrValue);



                    return(0);
                }
                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    string _attrName  = LuaAPI.lua_tostring(L, 2);
                    float  _attrValue = (float)LuaAPI.lua_tonumber(L, 3);

                    gen_to_be_invoked.SetAttribute(_attrName, _attrValue);



                    return(0);
                }
                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    string _attrName  = LuaAPI.lua_tostring(L, 2);
                    string _attrValue = LuaAPI.lua_tostring(L, 3);

                    gen_to_be_invoked.SetAttribute(_attrName, _attrValue);



                    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.Utils.XML.SetAttribute!"));
        }