Order decals in the placer window for mappers. (#13153)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user