Files
tbd-station-14/Content.Client/Commands/DebugCommands.cs
Kyle Tyo a52bf2a7c8 Convert a few debugging commands and the mapping setup command to LEC. (#38589)
* commit

* Update MappingClientSideSetupCommand.cs

* missed a spot

* Update MappingClientSideSetupCommand.cs

* whoopos

* Update mappingclientsidesetup-command.ftl
2025-07-28 18:29:15 +02:00

43 lines
1.1 KiB
C#

using Content.Client.Markers;
using Content.Client.Popups;
using Content.Client.SubFloor;
using Robust.Shared.Console;
namespace Content.Client.Commands;
internal sealed class ShowMarkersCommand : LocalizedEntityCommands
{
[Dependency] private readonly MarkerSystem _markerSystem = default!;
public override string Command => "showmarkers";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_markerSystem.MarkersVisible ^= true;
}
}
internal sealed class ShowSubFloor : LocalizedEntityCommands
{
[Dependency] private readonly SubFloorHideSystem _subfloorSystem = default!;
public override string Command => "showsubfloor";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_subfloorSystem.ShowAll ^= true;
}
}
internal sealed class NotifyCommand : LocalizedEntityCommands
{
[Dependency] private readonly PopupSystem _popupSystem = default!;
public override string Command => "notify";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_popupSystem.PopupCursor(args[0]);
}
}