mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 03:50:54 +01:00
* wallmount debug overlay * make circles a little smoother * add permissions * Update Resources/Locale/en-US/commands/show-wallmounts-command.ftl Co-authored-by: Pok <113675512+Pok27@users.noreply.github.com> * fix --------- Co-authored-by: Pok <113675512+Pok27@users.noreply.github.com> Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
25 lines
813 B
C#
25 lines
813 B
C#
using Content.Client.Wall;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Commands;
|
|
|
|
/// <summary>
|
|
/// Shows the area in which entities with <see cref="Content.Shared.Wall.WallMountComponent" /> can be interacted from.
|
|
/// </summary>
|
|
public sealed class ShowWallmountsCommand : LocalizedCommands
|
|
{
|
|
[Dependency] private readonly IOverlayManager _overlay = default!;
|
|
|
|
public override string Command => "showwallmounts";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
var existing = _overlay.RemoveOverlay<WallmountDebugOverlay>();
|
|
if (!existing)
|
|
_overlay.AddOverlay(new WallmountDebugOverlay());
|
|
|
|
shell.WriteLine(Loc.GetString("cmd-showwallmounts-status", ("status", !existing)));
|
|
}
|
|
}
|