Merge remote-tracking branch 'origin/gi' into large-worlds

# Conflicts:
#	Source/Engine/Core/Math/Vector3.h
This commit is contained in:
Wojtek Figat
2022-05-21 19:45:13 +02:00
280 changed files with 7660 additions and 2355 deletions

View File

@@ -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;

View File

@@ -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.

View File

@@ -67,7 +67,7 @@ namespace FlaxEditor.GUI
{
Find(Level.GetScene(i));
}
SortChildren();
SortItems();
}
private void OnItemClicked(Item item)

View File

@@ -122,7 +122,7 @@ namespace FlaxEditor.GUI
if (project.Content != null)
FindAssets(project.Content.Folder);
}
SortChildren();
SortItems();
}
private void OnItemClicked(Item item)

View File

@@ -78,7 +78,7 @@ namespace FlaxEditor.GUI
{
Find(Level.GetScene(i));
}
SortChildren();
SortItems();
}
private void OnItemClicked(Item item)

View File

@@ -95,7 +95,7 @@ namespace FlaxEditor.GUI
}
}
}
SortChildren();
SortItems();
}
private void OnItemClicked(Item item)

View File

@@ -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;
}
}