Swap the positions of AHelp and Rules in the main interface (#7957)

suggested by Kaylie
This commit is contained in:
20kdc
2022-05-06 04:46:33 +01:00
committed by GitHub
parent d332c829e8
commit 330fb13b25
7 changed files with 26 additions and 62 deletions

View File

@@ -1,3 +1,4 @@
using Content.Client.Info;
using Content.Client.Administration;
using Robust.Client.AutoGenerated;
using Robust.Client.Console;
@@ -25,7 +26,7 @@ namespace Content.Client.EscapeMenu.UI
OptionsButton.OnPressed += OnOptionsButtonClicked;
QuitButton.OnPressed += OnQuitButtonClicked;
AHelpButton.OnPressed += OnAHelpButtonClicked;
RulesButton.OnPressed += _ => new RulesAndInfoWindow().Open();
DisconnectButton.OnPressed += OnDisconnectButtonClicked;
}
@@ -35,13 +36,6 @@ namespace Content.Client.EscapeMenu.UI
Dispose();
}
private void OnAHelpButtonClicked(BaseButton.ButtonEventArgs args)
{
_consoleHost.ExecuteCommand("openahelp");
// Doing Dispose() here causes issues because you can't un-dispose the escape menu.
// The other commands don't really suffer as much from it. Unsure if bug.
}
private void OnDisconnectButtonClicked(BaseButton.ButtonEventArgs args)
{
_consoleHost.ExecuteCommand("disconnect");