示例#1
0
        static int _g_get_valid(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.UIConfig.ConfigValue gen_to_be_invoked = (FairyGUI.UIConfig.ConfigValue)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.valid);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
示例#2
0
        static int _s_set_f(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.UIConfig.ConfigValue gen_to_be_invoked = (FairyGUI.UIConfig.ConfigValue)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.f = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
示例#3
0
        static int _s_set_c(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.UIConfig.ConfigValue gen_to_be_invoked = (FairyGUI.UIConfig.ConfigValue)translator.FastGetCSObj(L, 1);
                UnityEngine.Color             gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.c = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
示例#4
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    FairyGUI.UIConfig.ConfigValue gen_ret = new FairyGUI.UIConfig.ConfigValue();
                    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.UIConfig.ConfigValue constructor!"));
        }
示例#5
0
        static int _m_Reset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.Reset(  );



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



                {
                    FairyGUI.UIConfig.ConfigKey   _key; translator.Get(L, 1, out _key);
                    FairyGUI.UIConfig.ConfigValue _value = (FairyGUI.UIConfig.ConfigValue)translator.GetObject(L, 2, typeof(FairyGUI.UIConfig.ConfigValue));

                    FairyGUI.UIConfig.SetDefaultValue(_key, _value);



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