group tiles by category
This commit is contained in:
@@ -144,7 +144,12 @@ namespace OpenRA.Editor
|
|||||||
// construct the palette of tiles
|
// construct the palette of tiles
|
||||||
var palettes = new[] { tilePalette, actorPalette, resourcePalette };
|
var palettes = new[] { tilePalette, actorPalette, resourcePalette };
|
||||||
foreach (var p in palettes) { p.Visible = false; p.SuspendLayout(); }
|
foreach (var p in palettes) { p.Visible = false; p.SuspendLayout(); }
|
||||||
foreach (var t in tileset.Templates)
|
|
||||||
|
foreach (var tc in tileset.Templates.GroupBy(t => t.Value.Category))
|
||||||
|
{
|
||||||
|
var category = tc.Key ?? "(Uncategorized)";
|
||||||
|
|
||||||
|
foreach( var t in tc )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -171,6 +176,7 @@ namespace OpenRA.Editor
|
|||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var actorTemplates = new List<ActorTemplate>();
|
var actorTemplates = new List<ActorTemplate>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user