Editor - Template categories are now ordered by whats specified in the tileset yaml
This commit is contained in:
committed by
Chris Forbes
parent
b56125fa39
commit
ac301b22e2
@@ -150,7 +150,8 @@ namespace OpenRA.Editor
|
||||
var palettes = new[] { tilePalette, actorPalette, resourcePalette };
|
||||
foreach (var p in palettes) { p.Visible = false; p.SuspendLayout(); }
|
||||
|
||||
foreach (var tc in tileset.Templates.GroupBy(t => t.Value.Category))
|
||||
string[] templateOrder = tileset.EditorTemplateOrder ?? new string[]{};
|
||||
foreach (var tc in tileset.Templates.GroupBy(t => t.Value.Category).OrderBy(t => templateOrder.ToList().IndexOf(t.Key)))
|
||||
{
|
||||
var category = tc.Key ?? "(Uncategorized)";
|
||||
var categoryHeader = new Label
|
||||
|
||||
Reference in New Issue
Block a user