CatStation/Content.Client/UserInterface/Controls/SimpleSlotOverlay.cs
beck-thompson 5f37c95e9f
Admins can now see what items are contraband and chameleon in the strip menu (#43658)
* Admins can now see what items are contraband and chameleon in the strip menu

* Fix the color, the default is now red

* better admin view comment

* Simplify logic, make new simple slot overlay to combine logic

* Make isadmin logic a little clearer

* Minor cleanup / spelling mistakes

* change  button shape

* change to res path

* opps

* Add option to change default behavior

* Fix spacing

* Remove unused

* Rename to default

* Take away the soul of the overlay

* Add tooltip

* Fix error
2026-05-10 10:45:58 +00:00

20 lines
574 B
C#

using System.Numerics;
using Robust.Client.UserInterface.Controls;
namespace Content.Client.UserInterface.Controls;
/// <summary>
/// Simple overlay for slots. Used for stuff like admin overlays to indicate a status
/// </summary>
public sealed class SimpleSlotOverlay : TextureRect
{
public SimpleSlotOverlay(string texturePath, Color? color = null)
{
TexturePath = texturePath;
TextureScale = new Vector2(2, 2);
SetSize = new Vector2(SlotControl.DefaultButtonSize);
if (color != null)
Modulate = color.Value;
}
}