Station records (#8720)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
using System.Linq;
|
||||
using Content.Client.CrewManifest;
|
||||
using Content.Client.Eui;
|
||||
using Content.Client.GameTicking.Managers;
|
||||
using Content.Client.HUD.UI;
|
||||
using Content.Shared.CCVar;
|
||||
using Content.Shared.CrewManifest;
|
||||
using Content.Shared.Roles;
|
||||
using Robust.Client.Console;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.Utility;
|
||||
using Robust.Shared.Configuration;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Utility;
|
||||
using static Robust.Client.UserInterface.Controls.BoxContainer;
|
||||
@@ -17,6 +22,7 @@ namespace Content.Client.LateJoin
|
||||
{
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
[Dependency] private readonly IClientConsoleHost _consoleHost = default!;
|
||||
[Dependency] private readonly IConfigurationManager _configManager = default!;
|
||||
|
||||
public event Action<(EntityUid, string)> SelectedId;
|
||||
|
||||
@@ -109,6 +115,21 @@ namespace Content.Client.LateJoin
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (_configManager.GetCVar<bool>(CCVars.CrewManifestWithoutEntity))
|
||||
{
|
||||
var crewManifestButton = new Button()
|
||||
{
|
||||
Text = Loc.GetString("crew-manifest-button-label")
|
||||
};
|
||||
crewManifestButton.OnPressed += args =>
|
||||
{
|
||||
EntitySystem.Get<CrewManifestSystem>().RequestCrewManifest(id);
|
||||
};
|
||||
|
||||
_base.AddChild(crewManifestButton);
|
||||
}
|
||||
|
||||
var jobListScroll = new ScrollContainer()
|
||||
{
|
||||
VerticalExpand = true,
|
||||
|
||||
Reference in New Issue
Block a user