mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-06-09 15:06:34 +02:00
5168b5f3d4
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
24 lines
837 B
C#
24 lines
837 B
C#
using Robust.Client.Graphics;
|
|
using Robust.Client.ResourceManagement;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Access.Commands;
|
|
|
|
public sealed partial class ShowAccessReadersCommand : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private IOverlayManager _overlay = default!;
|
|
[Dependency] private IResourceCache _cache = default!;
|
|
[Dependency] private SharedTransformSystem _xform = default!;
|
|
|
|
public override string Command => "showaccessreaders";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
var existing = _overlay.RemoveOverlay<AccessOverlay>();
|
|
if (!existing)
|
|
_overlay.AddOverlay(new AccessOverlay(EntityManager, _cache, _xform));
|
|
|
|
shell.WriteLine(Loc.GetString($"cmd-showaccessreaders-status", ("status", !existing)));
|
|
}
|
|
}
|