mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* 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
42 lines
1.1 KiB
C#
42 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 partial class ShowMarkersCommand : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private MarkerSystem _markerSystem = default!;
|
|
|
|
public override string Command => "showmarkers";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
_markerSystem.MarkersVisible ^= true;
|
|
}
|
|
}
|
|
|
|
internal sealed partial class ShowSubFloor : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private SubFloorHideSystem _subfloorSystem = default!;
|
|
|
|
public override string Command => "showsubfloor";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
_subfloorSystem.ShowAll ^= true;
|
|
}
|
|
}
|
|
|
|
internal sealed partial class NotifyCommand : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private PopupSystem _popupSystem = default!;
|
|
|
|
public override string Command => "notify";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
_popupSystem.PopupCursor(args[0]);
|
|
}
|
|
}
|