From 9caa67fc6e7db16941bd8c3c656b95d94684851f Mon Sep 17 00:00:00 2001
From: Jabak <163307958+Jabaks@users.noreply.github.com>
Date: Tue, 24 Sep 2024 16:56:30 +0300
Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BD=D0=BE=D0=BF=D0=BE=D1=87=D0=BA?=
=?UTF-8?q?=D0=B0=20AHelp=20=D0=B2=20=D0=BB=D0=BE=D0=B1=D0=B1=D0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
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..b5a3d2c19f 100644
--- a/Content.Client/Lobby/UI/LobbyGui.xaml
+++ b/Content.Client/Lobby/UI/LobbyGui.xaml
@@ -41,9 +41,6 @@
-
-
@@ -105,6 +102,12 @@
ButtonText="Привязать Discord"
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); };