Improve property names displaying in UI and add Unit Test for it
This commit is contained in:
@@ -261,7 +261,7 @@ namespace FlaxEditor.GUI
|
||||
switch (formatMode)
|
||||
{
|
||||
case EnumDisplayAttribute.FormatMode.Default:
|
||||
name = CustomEditorsUtil.GetPropertyNameUI(field.Name);
|
||||
name = Utilities.Utils.GetPropertyNameUI(field.Name);
|
||||
break;
|
||||
case EnumDisplayAttribute.FormatMode.None:
|
||||
name = field.Name;
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
if (SubTracks.Any(x => x is IObjectTrack y && y.Object == script))
|
||||
continue;
|
||||
|
||||
var name = CustomEditorsUtil.GetPropertyNameUI(script.GetType().Name);
|
||||
var name = Utilities.Utils.GetPropertyNameUI(script.GetType().Name);
|
||||
menu.AddButton(name, OnAddScriptTrack).Tag = script;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user