Exemplo n.º 1
0
 protected override void GetDependencies(System.Collections.Generic.Dictionary <long, UnityEngine.Object> dependencies, object obj)
 {
     base.GetDependencies(dependencies, obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.GUIStyleState o = (UnityEngine.GUIStyleState)obj;
     AddDependency(o.background, dependencies);
 }
Exemplo n.º 2
0
        public override void ReadFrom(object obj)
        {
            base.ReadFrom(obj);
            if (obj == null)
            {
                return;
            }
            UnityEngine.GUIStyleState o = (UnityEngine.GUIStyleState)obj;
            background = o.background.GetMappedInstanceID();

            textColor = o.textColor;
        }
        static int _s_set_background(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.GUIStyleState __cl_gen_to_be_invoked = (UnityEngine.GUIStyleState)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.background = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _g_get_textColor(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.GUIStyleState __cl_gen_to_be_invoked = (UnityEngine.GUIStyleState)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineColor(L, __cl_gen_to_be_invoked.textColor);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 5
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.GUIStyleState o = (UnityEngine.GUIStyleState)obj;
            o.background = (UnityEngine.Texture2D)objects.Get(background);

            o.textColor = textColor;
            return(o);
        }
        static int _s_set_textColor(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.GUIStyleState __cl_gen_to_be_invoked = (UnityEngine.GUIStyleState)translator.FastGetCSObj(L, 1);
                UnityEngine.Color         __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.textColor = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.GUIStyleState __cl_gen_ret = new UnityEngine.GUIStyleState();
                    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.GUIStyleState constructor!"));
        }