allow decals to be removed from placement menu (#9843)

This commit is contained in:
Nemanja
2022-07-17 22:02:03 -04:00
committed by GitHub
parent 9665a11363
commit f8b8b83657
3 changed files with 17 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using Content.Client.Stylesheets;
using Content.Shared.Decals;
using Robust.Client.AutoGenerated;
@@ -179,7 +179,8 @@ public sealed partial class DecalPlacerWindow : DefaultWindow
_decals = new Dictionary<string, Texture>();
foreach (var decalPrototype in prototypes)
{
_decals.Add(decalPrototype.ID, decalPrototype.Sprite.Frame0());
if (decalPrototype.ShowMenu)
_decals.Add(decalPrototype.ID, decalPrototype.Sprite.Frame0());
}
RefreshList();