diff --git a/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs b/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs index 07492b310f..1c94d32bf8 100644 --- a/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs +++ b/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs @@ -16,6 +16,8 @@ namespace Content.Client.Communications.UI [ViewVariables] public bool CanAnnounce { get; private set; } + [ViewVariables] + public bool CanBroadcast { get; private set; } [ViewVariables] public bool CanCall { get; private set; } @@ -71,6 +73,11 @@ namespace Content.Client.Communications.UI SendMessage(new CommunicationsConsoleAnnounceMessage(msg)); } + public void BroadcastButtonPressed(string message) + { + SendMessage(new CommunicationsConsoleBroadcastMessage(message)); + } + public void CallShuttle() { SendMessage(new CommunicationsConsoleCallEmergencyShuttleMessage()); @@ -89,6 +96,7 @@ namespace Content.Client.Communications.UI return; CanAnnounce = commsState.CanAnnounce; + CanBroadcast = commsState.CanBroadcast; CanCall = commsState.CanCall; _expectedCountdownTime = commsState.ExpectedCountdownEnd; CountdownStarted = commsState.CountdownStarted; @@ -102,6 +110,7 @@ namespace Content.Client.Communications.UI _menu.AlertLevelButton.Disabled = !AlertLevelSelectable; _menu.EmergencyShuttleButton.Disabled = !CanCall; _menu.AnnounceButton.Disabled = !CanAnnounce; + _menu.BroadcastButton.Disabled = !CanBroadcast; } } diff --git a/Content.Client/Communications/UI/CommunicationsConsoleMenu.xaml b/Content.Client/Communications/UI/CommunicationsConsoleMenu.xaml index 86c0b4e2d5..ea2f77d457 100644 --- a/Content.Client/Communications/UI/CommunicationsConsoleMenu.xaml +++ b/Content.Client/Communications/UI/CommunicationsConsoleMenu.xaml @@ -5,6 +5,7 @@