private void SectionAppearance() { GUILayout.Label("Appearance", "HeaderLabel"); using (MadGUI.Indent()) { FieldSetNativeSize(); EditorGUILayout.Space(); MadGUI.PropertyField(repeatCount, "Repeat Count"); MadGUI.PropertyFieldVector2(repeatPositionDelta, "Icons Distance"); MadGUI.PropertyField(repeatRotation, "Rotation"); using (MadGUI.Indent()) { MadGUI.PropertyField(repeatKeepOrientation, "Keep Orientation"); MadGUI.PropertyField(repeatKeepPosition, "Keep Position"); } EditorGUILayout.Space(); MadGUI.PropertyFieldEnumPopup(growType, "Grow Type"); using (MadGUI.EnabledIf(growType.enumValueIndex == (int)RepeatedRendererUGUI.GrowType.Fill)) { var index = growDirection.enumValueIndex; EditorGUI.BeginChangeCheck(); index = MadGUI.DynamicPopup(index, "Fill Direction", Enum.GetNames(typeof(EnergyBarBase.GrowDirection)).Length - 1, i => { return(SplitByCamelCase(Enum.GetNames(typeof(EnergyBarBase.GrowDirection))[i])); }); if (EditorGUI.EndChangeCheck()) { growDirection.enumValueIndex = index; } } FieldLabel2(); } }
protected void FieldLabel2() { MadGUI.PropertyField(label, "Label"); using (MadGUI.EnabledIf((target as EnergyBarUGUIBase).label != null)) { using (MadGUI.Indent()) { MadGUI.PropertyField(labelFormat, "Format"); formatHelpAnimBool.target = MadGUI.Foldout("Label Format Help", false); if (EditorGUILayout.BeginFadeGroup(formatHelpAnimBool.faded)) { EditorGUILayout.HelpBox(FormatHelp, MessageType.None); } EditorGUILayout.EndFadeGroup(); } } }