mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 15:47:26 +00:00
* i'm going insane from screens * some wiring * screemes * holy shit adhd lock-in * incomplete * its FUCKING DONE * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * zeta * mrrrp * test fix * fix arrivals * fix misnetwork * Fix iteration outline. Fixed all headers showing if all options where hidden. Added access requirement to keycard auth mechnism. Added countdown. Fixed ninja and fugitive. Fixed AI and aghost. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Vanessa <vanessalouwagie@gmail.com>
31 lines
891 B
C#
31 lines
891 B
C#
using Content.Shared._DV.Communications;
|
|
using Robust.Client.UserInterface;
|
|
|
|
namespace Content.Client._DV.Communications;
|
|
|
|
public sealed class DVCommunicationsConsoleBoundUserInterface : BoundUserInterface
|
|
{
|
|
[Dependency] private readonly IEntityManager _entity = default!;
|
|
|
|
private DVCommunicationsConsoleMenu? _menu;
|
|
|
|
public DVCommunicationsConsoleBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
|
{
|
|
}
|
|
|
|
protected override void Open()
|
|
{
|
|
base.Open();
|
|
|
|
_menu = this.CreateWindow<DVCommunicationsConsoleMenu>();
|
|
_menu.OnMessage += SendMessage;
|
|
if (_entity.TryGetComponent<DVCommunicationsConsoleComponent>(Owner, out var comp))
|
|
Update((Owner, comp));
|
|
}
|
|
|
|
public void Update(Entity<DVCommunicationsConsoleComponent> ent)
|
|
{
|
|
_menu?.Update(ent, PlayerManager.LocalEntity!.Value);
|
|
}
|
|
}
|