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
This commit is contained in:
@@ -1,53 +1,42 @@
|
||||
using Content.Client.Markers;
|
||||
using Content.Client.Popups;
|
||||
using Content.Client.SubFloor;
|
||||
using Content.Shared.SubFloor;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Shared.Console;
|
||||
using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
|
||||
|
||||
namespace Content.Client.Commands;
|
||||
|
||||
internal sealed class ShowMarkersCommand : LocalizedCommands
|
||||
internal sealed class ShowMarkersCommand : LocalizedEntityCommands
|
||||
{
|
||||
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
|
||||
[Dependency] private readonly MarkerSystem _markerSystem = default!;
|
||||
|
||||
public override string Command => "showmarkers";
|
||||
|
||||
public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
_entitySystemManager.GetEntitySystem<MarkerSystem>().MarkersVisible ^= true;
|
||||
_markerSystem.MarkersVisible ^= true;
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class ShowSubFloor : LocalizedCommands
|
||||
internal sealed class ShowSubFloor : LocalizedEntityCommands
|
||||
{
|
||||
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
|
||||
[Dependency] private readonly SubFloorHideSystem _subfloorSystem = default!;
|
||||
|
||||
public override string Command => "showsubfloor";
|
||||
|
||||
public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
_entitySystemManager.GetEntitySystem<SubFloorHideSystem>().ShowAll ^= true;
|
||||
_subfloorSystem.ShowAll ^= true;
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class NotifyCommand : LocalizedCommands
|
||||
internal sealed class NotifyCommand : LocalizedEntityCommands
|
||||
{
|
||||
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
|
||||
public override string Command => "notify";
|
||||
|
||||
public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var message = args[0];
|
||||
|
||||
_entitySystemManager.GetEntitySystem<PopupSystem>().PopupCursor(message);
|
||||
_popupSystem.PopupCursor(args[0]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user