Exemplo n.º 1
0
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *__ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new UnityEngine.GUIText();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Exemplo n.º 2
0
 protected override void GetDependencies(System.Collections.Generic.Dictionary <long, UnityEngine.Object> dependencies, object obj)
 {
     base.GetDependencies(dependencies, obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.GUIText o = (UnityEngine.GUIText)obj;
     AddDependency(o.material, dependencies);
     AddDependency(o.font, dependencies);
 }
Exemplo n.º 3
0
        static int _g_get_text(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.GUIText __cl_gen_to_be_invoked = (UnityEngine.GUIText)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, __cl_gen_to_be_invoked.text);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 4
0
        static int _s_set_richText(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.GUIText __cl_gen_to_be_invoked = (UnityEngine.GUIText)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.richText = 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 _s_set_material(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.GUIText __cl_gen_to_be_invoked = (UnityEngine.GUIText)translator.FastGetCSObj(L, 1);
                __cl_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.º 6
0
        static int _s_set_color(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.GUIText __cl_gen_to_be_invoked = (UnityEngine.GUIText)translator.FastGetCSObj(L, 1);
                UnityEngine.Color   __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.color = __cl_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)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.GUIText __cl_gen_ret = new UnityEngine.GUIText();
                    translator.Push(L, __cl_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 UnityEngine.GUIText constructor!"));
        }
Exemplo n.º 8
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.GUIText o = (UnityEngine.GUIText)obj;
     text        = o.text;
     material    = o.material.GetMappedInstanceID();
     pixelOffset = o.pixelOffset;
     font        = o.font.GetMappedInstanceID();
     alignment   = (uint)o.alignment;
     anchor      = (uint)o.anchor;
     lineSpacing = o.lineSpacing;
     tabSize     = o.tabSize;
     fontSize    = o.fontSize;
     fontStyle   = (uint)o.fontStyle;
     richText    = o.richText;
     color       = o.color;
 }
Exemplo n.º 9
0
 public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects)
 {
     obj = base.WriteTo(obj, objects);
     if (obj == null)
     {
         return(null);
     }
     UnityEngine.GUIText o = (UnityEngine.GUIText)obj;
     o.text        = text;
     o.material    = (UnityEngine.Material)objects.Get(material);
     o.pixelOffset = pixelOffset;
     o.font        = (UnityEngine.Font)objects.Get(font);
     o.alignment   = (UnityEngine.TextAlignment)alignment;
     o.anchor      = (UnityEngine.TextAnchor)anchor;
     o.lineSpacing = lineSpacing;
     o.tabSize     = tabSize;
     o.fontSize    = fontSize;
     o.fontStyle   = (UnityEngine.FontStyle)fontStyle;
     o.richText    = richText;
     o.color       = color;
     return(o);
 }