public static SkillRect FsmRectPopup(GUIContent label, Skill fsm, SkillRect fsmRect) { EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]); fsmRect = VariableEditor.DoFsmRectPopup(label, fsm, fsmRect); VariableEditor.EndVariableEditor(fsmRect); return(fsmRect); }
public static SkillRect FsmRectField(GUIContent label, Skill fsm, SkillRect fsmRect) { EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]); if (fsmRect.get_UseVariable()) { fsmRect = VariableEditor.DoFsmRectPopup(label, fsm, fsmRect); } else { fsmRect.set_Value(EditorGUILayout.RectField(label.get_text(), fsmRect.get_Value(), new GUILayoutOption[0])); } fsmRect = (SkillRect)VariableEditor.VariableToggle(fsmRect, label.get_text()); VariableEditor.EndVariableEditor(fsmRect); return(fsmRect); }
private static SkillRect DoFsmRectPopup(GUIContent label, Skill fsm, SkillRect fsmRect) { ActionEditor.DoVariableSelector(label, fsm, 8, fsmRect, -1, null); fsmRect.set_UseVariable(true); return(fsmRect); }