diff --git a/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs b/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs index 9a2533ff0d1..6412f4b2502 100644 --- a/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs +++ b/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs @@ -2,10 +2,12 @@ using Content.Client.Ghost; using Content.Client.UserInterface.Systems.Gameplay; using Content.Client.UserInterface.Systems.Ghost.Widgets; +using Content.Shared._DV.Ghost.Roles; // DeltaV - freeform ghosties using Content.Shared.Ghost; using Robust.Shared.Console; // Frontier using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controllers; +using Robust.Shared.Prototypes; // DeltaV - freeform ghosties using Content.Shared._Corvax.Respawn; // Frontier namespace Content.Client.UserInterface.Systems.Ghost; @@ -33,6 +35,7 @@ public sealed class GhostUIController : UIController, IOnSystemChanged(OnRespawnReseted); + SubscribeNetworkEvent(OnVentCritterCooldownUpdate); // DeltaV - freeform ghosties } private void OnScreenLoad() @@ -151,6 +154,8 @@ public sealed class GhostUIController : UIController, IOnSystemChanged role) + { + _net.SendSystemNetworkMessage(new DVSpawnableGhostRoleRequestEvent(role)); + } + + private void OnVentCritterCooldownUpdate(DVSpawnableGhostRoleCooldownUpdateEvent msg, EntitySessionEventArgs args) + { + Gui?.VentCritterWindow.SetCooldownEnd(msg.CooldownEnd); + } + // End DeltaV - freeform ghosties } diff --git a/Content.Client/UserInterface/Systems/Ghost/Widgets/GhostGui.xaml b/Content.Client/UserInterface/Systems/Ghost/Widgets/GhostGui.xaml index 3f111264eed..6630383fac3 100644 --- a/Content.Client/UserInterface/Systems/Ghost/Widgets/GhostGui.xaml +++ b/Content.Client/UserInterface/Systems/Ghost/Widgets/GhostGui.xaml @@ -5,6 +5,7 @@