コード例 #1
0
        int UnityEngineUIContentSizeFitter_g_get_verticalFit(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            UnityEngine.UI.ContentSizeFitter gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1);
            translator.Push(L, gen_to_be_invoked.verticalFit);
            return(1);
        }
コード例 #2
0
        int UnityEngineUIContentSizeFitter_s_set_verticalFit(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;

            UnityEngine.UI.ContentSizeFitter         gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1);
            UnityEngine.UI.ContentSizeFitter.FitMode gen_value; translator.Get(L, 2, out gen_value);
            gen_to_be_invoked.verticalFit = gen_value;

            return(0);
        }
コード例 #3
0
 /// <summary>
 /// Write the specified value using the writer.
 /// </summary>
 /// <param name="value">Value.</param>
 /// <param name="writer">Writer.</param>
 public override void Write(object value, ISaveGameWriter writer)
 {
     UnityEngine.UI.ContentSizeFitter contentSizeFitter = (UnityEngine.UI.ContentSizeFitter)value;
     writer.WriteProperty("horizontalFit", contentSizeFitter.horizontalFit);
     writer.WriteProperty("verticalFit", contentSizeFitter.verticalFit);
     writer.WriteProperty("useGUILayout", contentSizeFitter.useGUILayout);
     writer.WriteProperty("enabled", contentSizeFitter.enabled);
     writer.WriteProperty("tag", contentSizeFitter.tag);
     writer.WriteProperty("name", contentSizeFitter.name);
     writer.WriteProperty("hideFlags", contentSizeFitter.hideFlags);
 }
コード例 #4
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.UI.ContentSizeFitter o = (UnityEngine.UI.ContentSizeFitter)obj;
     horizontalFit = (uint)o.horizontalFit;
     verticalFit   = (uint)o.verticalFit;
 }
コード例 #5
0
        static int _g_get_horizontalFit(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.UI.ContentSizeFitter __cl_gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.horizontalFit);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
コード例 #6
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.UI.ContentSizeFitter o = (UnityEngine.UI.ContentSizeFitter)obj;
     o.horizontalFit = (UnityEngine.UI.ContentSizeFitter.FitMode)horizontalFit;
     o.verticalFit   = (UnityEngine.UI.ContentSizeFitter.FitMode)verticalFit;
     return(o);
 }
コード例 #7
0
        static int _s_set_verticalFit(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.UI.ContentSizeFitter         __cl_gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1);
                UnityEngine.UI.ContentSizeFitter.FitMode __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.verticalFit = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
コード例 #8
0
        static int _s_set_horizontalFit(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.UI.ContentSizeFitter         gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1);
                UnityEngine.UI.ContentSizeFitter.FitMode gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.horizontalFit = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
コード例 #9
0
        static StackObject *get_verticalFit_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.ContentSizeFitter instance_of_this_method = (UnityEngine.UI.ContentSizeFitter) typeof(UnityEngine.UI.ContentSizeFitter).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.verticalFit;

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
コード例 #10
0
        static StackObject *SetLayoutVertical_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.ContentSizeFitter instance_of_this_method = (UnityEngine.UI.ContentSizeFitter) typeof(UnityEngine.UI.ContentSizeFitter).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetLayoutVertical();

            return(__ret);
        }
コード例 #11
0
        int UnityEngineUIContentSizeFitter_m_SetLayoutVertical(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.UI.ContentSizeFitter gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1);


            {
                gen_to_be_invoked.SetLayoutVertical(  );



                return(0);
            }
        }
コード例 #12
0
        static StackObject *set_horizontalFit_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.ContentSizeFitter.FitMode @value = (UnityEngine.UI.ContentSizeFitter.FitMode) typeof(UnityEngine.UI.ContentSizeFitter.FitMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.ContentSizeFitter instance_of_this_method = (UnityEngine.UI.ContentSizeFitter) typeof(UnityEngine.UI.ContentSizeFitter).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.horizontalFit = value;

            return(__ret);
        }
コード例 #13
0
        static int _m_SetLayoutVertical(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.ContentSizeFitter __cl_gen_to_be_invoked = (UnityEngine.UI.ContentSizeFitter)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.SetLayoutVertical(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #14
0
        /// <summary>
        /// Read the data into the specified value.
        /// </summary>
        /// <param name="value">Value.</param>
        /// <param name="reader">Reader.</param>
        public override void ReadInto(object value, ISaveGameReader reader)
        {
            UnityEngine.UI.ContentSizeFitter contentSizeFitter = (UnityEngine.UI.ContentSizeFitter)value;
            foreach (string property in reader.Properties)
            {
                switch (property)
                {
                case "horizontalFit":
                    contentSizeFitter.horizontalFit = reader.ReadProperty <UnityEngine.UI.ContentSizeFitter.FitMode> ();
                    break;

                case "verticalFit":
                    contentSizeFitter.verticalFit = reader.ReadProperty <UnityEngine.UI.ContentSizeFitter.FitMode> ();
                    break;

                case "useGUILayout":
                    contentSizeFitter.useGUILayout = reader.ReadProperty <System.Boolean> ();
                    break;

                case "enabled":
                    contentSizeFitter.enabled = reader.ReadProperty <System.Boolean> ();
                    break;

                case "tag":
                    contentSizeFitter.tag = reader.ReadProperty <System.String> ();
                    break;

                case "name":
                    contentSizeFitter.name = reader.ReadProperty <System.String> ();
                    break;

                case "hideFlags":
                    contentSizeFitter.hideFlags = reader.ReadProperty <UnityEngine.HideFlags> ();
                    break;
                }
            }
        }
コード例 #15
0
 /// <summary>
 /// Read the data using the reader.
 /// </summary>
 /// <param name="reader">Reader.</param>
 public override object Read(ISaveGameReader reader)
 {
     UnityEngine.UI.ContentSizeFitter contentSizeFitter = SaveGameType.CreateComponent <UnityEngine.UI.ContentSizeFitter> ();
     ReadInto(contentSizeFitter, reader);
     return(contentSizeFitter);
 }