From ea9389cc089bb1b72fd06659f0882ebb223eaf7b Mon Sep 17 00:00:00 2001
From: Trest <144359854+trest100@users.noreply.github.com>
Date: Mon, 10 Feb 2025 15:06:23 +0300
Subject: [PATCH] fix + new Button (#1042)
---
Content.Client/Lobby/UI/LobbyGui.xaml | 14 +++++++-------
Content.Client/Lobby/UI/LobbyGui.xaml.cs | 2 +-
Resources/Locale/ru-RU/lobby/lobby-gui.ftl | 1 +
3 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml b/Content.Client/Lobby/UI/LobbyGui.xaml
index ab4869aaad2..594160b9062 100644
--- a/Content.Client/Lobby/UI/LobbyGui.xaml
+++ b/Content.Client/Lobby/UI/LobbyGui.xaml
@@ -27,12 +27,12 @@
+ VerticalAlignment="Center" Margin="20 0 0 450" />
-
+
@@ -61,11 +61,11 @@
Access="Public"
ButtonText="{Loc 'ui-lobby-options-button'}"
Margin="0 10 0 10" />
-
+ ButtonText="{Loc 'ui-lobby-open-votemenu'}"
+ Margin="0 10 0 10" />
-
diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml.cs b/Content.Client/Lobby/UI/LobbyGui.xaml.cs
index 71f644dd440..b496ca93294 100644
--- a/Content.Client/Lobby/UI/LobbyGui.xaml.cs
+++ b/Content.Client/Lobby/UI/LobbyGui.xaml.cs
@@ -24,7 +24,7 @@ public LobbyGui()
OptionsButton.OnPressed += _ => _userInterfaceManager.GetUIController().ToggleWindow();
// BACKMEN Edit Start
- /*DiscordButton.OnPressed += _ => _stalinManager.RequestUri();*/
+ VotemenuButton.OnPressed += _ => _consoleHost.ExecuteCommand("votemenu");
ChangelogButton.OnPressed += _ => UserInterfaceManager.GetUIController().ToggleWindow();
QuitButton.OnPressed += _ => _consoleHost.ExecuteCommand("disconnect");
// BACKMEN Edit End
diff --git a/Resources/Locale/ru-RU/lobby/lobby-gui.ftl b/Resources/Locale/ru-RU/lobby/lobby-gui.ftl
index c2ef3cefd32..15cd5a8bcb7 100644
--- a/Resources/Locale/ru-RU/lobby/lobby-gui.ftl
+++ b/Resources/Locale/ru-RU/lobby/lobby-gui.ftl
@@ -1,4 +1,5 @@
ui-lobby-title = Лобби: {$serverName}
+ui-lobby-open-votemenu = Меню Голосований
ui-lobby-ahelp-button = AHelp
ui-lobby-options-button = Настройки
ui-lobby-leave-button = Выйти