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); }
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); }
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); }
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); }
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); }
void AddChild(CGME.ActionGroup parent, CGME.Action child) { parent.AddAction(child); Target.SetSerialize(true); }