Merge remote-tracking branch 'origin/gi' into large-worlds
# Conflicts: # Source/Engine/Core/Math/Vector3.h
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;
|
||||
|
||||
@@ -263,6 +263,19 @@ namespace FlaxEditor.GUI
|
||||
PerformLayout(true);
|
||||
_searchBox.Focus();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sorts the items list (by item name by default).
|
||||
/// </summary>
|
||||
public void SortItems()
|
||||
{
|
||||
ItemsPanel.SortChildren();
|
||||
if (_categoryPanels != null)
|
||||
{
|
||||
for (int i = 0; i < _categoryPanels.Count; i++)
|
||||
_categoryPanels[i].SortChildren();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the item to the view and registers for the click event.
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace FlaxEditor.GUI
|
||||
{
|
||||
Find(Level.GetScene(i));
|
||||
}
|
||||
SortChildren();
|
||||
SortItems();
|
||||
}
|
||||
|
||||
private void OnItemClicked(Item item)
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace FlaxEditor.GUI
|
||||
if (project.Content != null)
|
||||
FindAssets(project.Content.Folder);
|
||||
}
|
||||
SortChildren();
|
||||
SortItems();
|
||||
}
|
||||
|
||||
private void OnItemClicked(Item item)
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace FlaxEditor.GUI
|
||||
{
|
||||
Find(Level.GetScene(i));
|
||||
}
|
||||
SortChildren();
|
||||
SortItems();
|
||||
}
|
||||
|
||||
private void OnItemClicked(Item item)
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace FlaxEditor.GUI
|
||||
}
|
||||
}
|
||||
}
|
||||
SortChildren();
|
||||
SortItems();
|
||||
}
|
||||
|
||||
private void OnItemClicked(Item item)
|
||||
|
||||
@@ -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