Пример #1
0
        public static bool Toggle(CGM.Action act, string label, bool obj)
        {
            bool ret = EditorGUILayout.Toggle(label, obj);

            if (ret != obj)
            {
                act.SetSerialize(true);
            }

            return(ret);
        }
Пример #2
0
        public static int Popup(CGM.Action act, string label, int obj, string[] labels)
        {
            int ret = EditorGUILayout.Popup(label, obj, labels);

            if (ret != obj)
            {
                act.SetSerialize(true);
            }

            return(ret);
        }
Пример #3
0
        public static int IntField(CGM.Action act, string label, int obj)
        {
            int ret = EditorGUILayout.IntField(label, obj);

            if (ret != obj)
            {
                act.SetSerialize(true);
            }

            return(ret);
        }
Пример #4
0
        public static Enum EnumPopup(CGM.Action act, string label, Enum obj)
        {
            Enum ret = EditorGUILayout.EnumPopup(label, obj);

            if (ret != obj)
            {
                act.SetSerialize(true);
            }

            return(ret);
        }
Пример #5
0
        public static string TextField(CGM.Action act, string label, string obj)
        {
            string ret = EditorGUILayout.TextField(label, obj);

            //Debug.Log (ret + " " + obj);
            if (ret != obj)
            {
                act.SetSerialize(true);
            }

            return(ret);
        }
Пример #6
0
 void AddChild(CGME.ActionGroup parent, CGME.Action child)
 {
     parent.AddAction(child);
     Target.SetSerialize(true);
 }