mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* Add new command for showing network links * Use AllEntityQueryEnumerator to bypass EntityPaused check * Localise description
21 lines
676 B
C#
21 lines
676 B
C#
using Robust.Client.Graphics;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client._DV.NetworkConfigurator;
|
|
|
|
public sealed class ToggleNetworkLinksCommand : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private readonly IOverlayManager _overlay = default!;
|
|
|
|
public override string Command => "togglenetworklinks";
|
|
public override string Description => Loc.GetString("cmd-togglenetworklinks-desc");
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
if (_overlay.RemoveOverlay<MappingNetworkConfiguratorLinkOverlay>())
|
|
return;
|
|
|
|
_overlay.AddOverlay(new MappingNetworkConfiguratorLinkOverlay());
|
|
}
|
|
}
|