mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* Update for new render API - Fix mob movement incorrectly causing rotation lerps sometimes. - Update API calls to use the new render-specific methods. * Thanks rider * augh wrong event * Buckle, vehicle, and mover fixes * Rename render poses to render transforms * garbage
24 lines
864 B
C#
24 lines
864 B
C#
using Robust.Client.GameObjects;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Client.ResourceManagement;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Access.Commands;
|
|
|
|
public sealed partial class ShowAccessReadersCommand : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private IOverlayManager _overlay = default!;
|
|
[Dependency] private IResourceCache _cache = default!;
|
|
[Dependency] private TransformSystem _xform = default!;
|
|
|
|
public override string Command => "showaccessreaders";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
var existing = _overlay.RemoveOverlay<AccessOverlay>();
|
|
if (!existing)
|
|
_overlay.AddOverlay(new AccessOverlay(EntityManager, _cache, _xform));
|
|
|
|
shell.WriteLine(Loc.GetString($"cmd-showaccessreaders-status", ("status", !existing)));
|
|
}
|
|
}
|