Add fax admin panel (#15215)

This commit is contained in:
Morb
2023-04-16 23:20:57 -07:00
committed by GitHub
parent 55f82d2c15
commit 0e6b273f1f
13 changed files with 367 additions and 27 deletions

View File

@@ -0,0 +1,31 @@
using Content.Server.EUI;
using Content.Server.Fax.AdminUI;
using Content.Shared.Administration;
using Robust.Server.Player;
using Robust.Shared.Console;
namespace Content.Server.Administration.Commands;
[AdminCommand(AdminFlags.Admin)]
public sealed class FaxUiCommand : IConsoleCommand
{
public string Command => "faxui";
public string Description => Loc.GetString("cmd-faxui-desc");
public string Help => Loc.GetString("cmd-faxui-help");
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
var player = shell.Player as IPlayerSession;
if (player == null)
{
shell.WriteLine("shell-only-players-can-run-this-command");
return;
}
var eui = IoCManager.Resolve<EuiManager>();
var ui = new AdminFaxEui();
eui.OpenEui(ui, player);
}
}