public static SkillInt FsmIntPopup(GUIContent label, Skill fsm, SkillInt fsmInt) { EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]); fsmInt = VariableEditor.DoFsmIntPopup(label, fsm, fsmInt); VariableEditor.EndVariableEditor(fsmInt); return(fsmInt); }
public static SkillInt FsmIntField(GUIContent label, Skill fsm, SkillInt fsmInt, object[] attributes) { EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]); if (fsmInt.get_UseVariable()) { fsmInt = VariableEditor.DoFsmIntPopup(label, fsm, fsmInt); } else { UIHint uIHint = CustomAttributeHelpers.GetUIHint(attributes); UIHint uIHint2 = uIHint; if (uIHint2 == 8) { fsmInt.set_Value(EditorGUILayout.LayerField(label, Convert.ToInt32(fsmInt.get_Value(), CultureInfo.get_CurrentCulture()), new GUILayoutOption[0])); } else { fsmInt.set_Value(EditorGUILayout.IntField(label, fsmInt.get_Value(), new GUILayoutOption[0])); } } fsmInt = (SkillInt)VariableEditor.VariableToggle(fsmInt, label.get_text()); VariableEditor.EndVariableEditor(fsmInt); return(fsmInt); }