From 982185a2bba586d89ef4c5cc7f8cf19e7d3a7d4e Mon Sep 17 00:00:00 2001
From: Jabak <163307958+Jabaks@users.noreply.github.com>
Date: Wed, 25 Sep 2024 19:56:09 +0300
Subject: [PATCH] Ahelp in lobby (#708)
---
Content.Client/Lobby/UI/LobbyGui.xaml | 9 ++++++---
.../UserInterface/Systems/Bwoink/AHelpUIController.cs | 5 +++--
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml b/Content.Client/Lobby/UI/LobbyGui.xaml
index dff92291e9..ce3cc56177 100644
--- a/Content.Client/Lobby/UI/LobbyGui.xaml
+++ b/Content.Client/Lobby/UI/LobbyGui.xaml
@@ -41,9 +41,6 @@
-
-
@@ -99,6 +96,12 @@
ButtonText="Options"
Margin="0 10 0 10" />
+
+
UIManager.GetActiveUIWidgetOrNull()?.AHelpButton;
- private Button? LobbyAHelpButton => (UIManager.ActiveScreen as LobbyGui)?.AHelpButton;
+ private OhioLobbyTextButton? LobbyAHelpButton => (UIManager.ActiveScreen as LobbyGui)?.AHelpButton;
public IAHelpUIHandler? UIHelper;
private bool _discordRelayActive;
private bool _hasUnreadAHelp;
@@ -192,7 +193,7 @@ public sealed class AHelpUIController: UIController, IOnSystemChanged
+ UIHelper.SendMessageAction = (userId, textMessage, playSound) =>
_bwoinkSystem?.Send(userId, textMessage, isAdmin, playSound);
UIHelper.InputTextChanged += (channel, text) => _bwoinkSystem?.SendInputTextUpdated(channel, text.Length > 0);
UIHelper.OnClose += () => { SetAHelpPressed(false); };