ShowManifestFeature (#738)

This commit is contained in:
BIGZi0348
2024-10-20 00:34:25 +03:00
committed by GitHub
parent 5db1be4706
commit 21c5bf2c32
3 changed files with 15 additions and 8 deletions

View File

@@ -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();
}
}
}

View File

@@ -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();
}
}

View File

@@ -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