ShowManifestFeature (#738)
This commit is contained in:
@@ -1,23 +1,21 @@
|
||||
using Content.Client.GameTicking.Managers;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.GameTicking;
|
||||
using Content.Shared.Administration;
|
||||
using Robust.Shared.Console;
|
||||
using Robust.Shared.Network;
|
||||
using Content.Client.RoundEnd;
|
||||
using Robust.Client.UserInterface;
|
||||
|
||||
namespace Content.Client.GameTicking.Commands
|
||||
{
|
||||
[AnyCommand]
|
||||
public sealed class ShowManifestCommand : IConsoleCommand
|
||||
{
|
||||
[Dependency] private readonly IEntitySystemManager _entitySystem = default!;
|
||||
|
||||
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
|
||||
public string Command => "showmanifest";
|
||||
public string Description => "Shows round end summary window";
|
||||
public string Help => "Usage: showmanifest";
|
||||
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
shell.WriteLine("You can't open manifest right now");
|
||||
_userInterfaceManager.GetUIController<RoundEndSummaryUIController>().ShowManifest();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,13 @@ public sealed class RoundEndSummaryUIController : UIController,
|
||||
_input.SetInputCommand(ContentKeyFunctions.ToggleRoundEndSummaryWindow,
|
||||
InputCmdHandler.FromDelegate(ToggleScoreboardWindow));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// WD.
|
||||
/// Used for cosnole command.
|
||||
/// </summary>
|
||||
public void ShowManifest()
|
||||
{
|
||||
ToggleScoreboardWindow();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -458,7 +458,7 @@ binds:
|
||||
- function: OpenDecalSpawnWindow
|
||||
type: State
|
||||
key: F8
|
||||
- function: OpenScoreboardWindow
|
||||
- function: ToggleRoundEndSummaryWindow # WD ahead of wizden upstream
|
||||
type: State
|
||||
key: F9
|
||||
- function: OpenSandboxWindow
|
||||
|
||||
Reference in New Issue
Block a user