diff --git a/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs b/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs index 0310e91eeb..a6bb84c644 100644 --- a/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs +++ b/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs @@ -27,6 +27,7 @@ namespace Content.Client.Communications.UI _menu.OnBroadcast += BroadcastButtonPressed; _menu.OnAlertLevel += AlertLevelSelected; _menu.OnEmergencyLevel += EmergencyShuttleButtonPressed; + _menu.OnToggleRelay += ToggleRelayPressed; // Sunrise-Edit } public void AlertLevelSelected(string level) @@ -58,6 +59,13 @@ namespace Content.Client.Communications.UI SendMessage(new CommunicationsConsoleBroadcastMessage(message)); } + // Sunrise-Start + private void ToggleRelayPressed() + { + SendMessage(new CommunicationsConsoleToggleRelayMessage()); + } + // Sunrise-End + public void CallShuttle() { SendMessage(new CommunicationsConsoleCallEmergencyShuttleMessage()); @@ -91,6 +99,14 @@ namespace Content.Client.Communications.UI _menu.EmergencyShuttleButton.Disabled = !_menu.CanCall; _menu.AnnounceButton.Disabled = !_menu.CanAnnounce; _menu.BroadcastButton.Disabled = !_menu.CanBroadcast; + + // Sunrise-Start + _menu.CanRelay = commsState.CanRelay; + _menu.IsRelaying = commsState.IsRelaying; + _menu.RelayCooldownRemaining = commsState.RelayCooldownRemaining; + _menu.RelayTimeRemaining = commsState.RelayTimeRemaining; + _menu.UpdateRelayUi(); + // Sunrise-End } } } diff --git a/Content.Client/Communications/UI/CommunicationsConsoleMenu.xaml b/Content.Client/Communications/UI/CommunicationsConsoleMenu.xaml index b74df979cf..0c276d0a99 100644 --- a/Content.Client/Communications/UI/CommunicationsConsoleMenu.xaml +++ b/Content.Client/Communications/UI/CommunicationsConsoleMenu.xaml @@ -9,23 +9,25 @@ VerticalExpand="True" Margin="6 6 6 5"> - - - + Margin="0 2"> - - + + + + -