Exemplo n.º 1
0
        static int _m_GetMaterial(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    int _materialType = LuaAPI.xlua_tointeger(L, 2);
                    FairyGUI.BlendMode _blendMode; translator.Get(L, 3, out _blendMode);
                    uint _clipId = LuaAPI.xlua_touint(L, 4);
                    bool _firstInstance;

                    FairyGUI.NMaterial gen_ret = gen_to_be_invoked.GetMaterial(
                        _materialType,
                        _blendMode,
                        _clipId,
                        out _firstInstance);
                    translator.Push(L, gen_ret);
                    LuaAPI.lua_pushboolean(L, _firstInstance);



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

                FairyGUI.NMaterial gen_to_be_invoked = (FairyGUI.NMaterial)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, gen_to_be_invoked.frameId);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemplo n.º 3
0
        static int _s_set_material(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.NMaterial gen_to_be_invoked = (FairyGUI.NMaterial)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 4
0
        static int _s_set_combined(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.NMaterial gen_to_be_invoked = (FairyGUI.NMaterial)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.combined = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 5
0
        static int _g_get_blendMode(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.NMaterial gen_to_be_invoked = (FairyGUI.NMaterial)translator.FastGetCSObj(L, 1);
                translator.PushFairyGUIBlendMode(L, gen_to_be_invoked.blendMode);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemplo n.º 6
0
        static int _s_set_blendMode(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.NMaterial gen_to_be_invoked = (FairyGUI.NMaterial)translator.FastGetCSObj(L, 1);
                FairyGUI.BlendMode gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.blendMode = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 7
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <UnityEngine.Shader>(L, 2))
                {
                    UnityEngine.Shader _shader = (UnityEngine.Shader)translator.GetObject(L, 2, typeof(UnityEngine.Shader));

                    FairyGUI.NMaterial gen_ret = new FairyGUI.NMaterial(_shader);
                    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.NMaterial constructor!"));
        }