Swap the positions of AHelp and Rules in the main interface (#7957)
suggested by Kaylie
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user