Order decals in the placer window for mappers. (#13153)

This commit is contained in:
Vordenburg
2022-12-23 14:51:19 -05:00
committed by GitHub
parent 9089ec4d6a
commit 92f806439e

View File

@@ -20,7 +20,7 @@ public sealed partial class DecalPlacerWindow : DefaultWindow
private PaletteColorPicker? _picker; private PaletteColorPicker? _picker;
private Dictionary<string, Texture>? _decals; private SortedDictionary<string, Texture>? _decals;
private string? _selected; private string? _selected;
private Color _color = Color.White; private Color _color = Color.White;
private bool _useColor; private bool _useColor;
@@ -170,7 +170,7 @@ public sealed partial class DecalPlacerWindow : DefaultWindow
public void Populate(IEnumerable<DecalPrototype> prototypes) public void Populate(IEnumerable<DecalPrototype> prototypes)
{ {
_decals = new Dictionary<string, Texture>(); _decals = new SortedDictionary<string, Texture>();
foreach (var decalPrototype in prototypes) foreach (var decalPrototype in prototypes)
{ {
if (decalPrototype.ShowMenu) if (decalPrototype.ShowMenu)