mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* 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
20 lines
574 B
C#
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;
|
|
}
|
|
}
|