Fix name (was causing docs build warning)
This commit is contained in:
@@ -23,7 +23,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
/// <inheritdoc />
|
||||
protected override void OnValueChanged()
|
||||
{
|
||||
var value = (StaticFlags)element.EnumComboBox.EnumTypeValue;
|
||||
var value = (StaticFlags)element.ComboBox.EnumTypeValue;
|
||||
|
||||
// If selected is single actor that has children, ask if apply flags to the sub objects as well
|
||||
if (Values.IsSingleObject && (StaticFlags)Values[0] != value && ParentEditor.Values[0] is Actor actor && actor.HasChildren)
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
{
|
||||
var enumType = Values.Type.Type != typeof(object) || Values[0] == null ? TypeUtils.GetType(Values.Type) : Values[0].GetType();
|
||||
element = layout.Enum(enumType, null, mode);
|
||||
element.EnumComboBox.ValueChanged += OnValueChanged;
|
||||
element.ComboBox.ValueChanged += OnValueChanged;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
/// </summary>
|
||||
protected virtual void OnValueChanged()
|
||||
{
|
||||
SetValue(element.EnumComboBox.EnumTypeValue);
|
||||
SetValue(element.ComboBox.EnumTypeValue);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -63,7 +63,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
}
|
||||
else
|
||||
{
|
||||
element.EnumComboBox.EnumTypeValue = Values[0];
|
||||
element.ComboBox.EnumTypeValue = Values[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace FlaxEditor.CustomEditors.Elements
|
||||
/// <summary>
|
||||
/// The combo box used to show enum values.
|
||||
/// </summary>
|
||||
public EnumComboBox EnumComboBox;
|
||||
public EnumComboBox ComboBox;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumElement"/> class.
|
||||
@@ -26,10 +26,10 @@ namespace FlaxEditor.CustomEditors.Elements
|
||||
/// <param name="formatMode">The formatting mode.</param>
|
||||
public EnumElement(Type type, EnumComboBox.BuildEntriesDelegate customBuildEntriesDelegate = null, EnumDisplayAttribute.FormatMode formatMode = EnumDisplayAttribute.FormatMode.Default)
|
||||
{
|
||||
EnumComboBox = new EnumComboBox(type, customBuildEntriesDelegate, formatMode);
|
||||
ComboBox = new EnumComboBox(type, customBuildEntriesDelegate, formatMode);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override Control Control => EnumComboBox;
|
||||
public override Control Control => ComboBox;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user