From 2e68b81d2a81ae80aa7c871d589cb062c273e772 Mon Sep 17 00:00:00 2001 From: Arufonsu <17498701+Arufonsu@users.noreply.github.com> Date: Tue, 26 Nov 2024 20:10:21 -0300 Subject: [PATCH] fix: esc key - simplified escape menu --- Intersect.Client/Core/Input.cs | 2 +- Intersect.Client/Interface/Game/Menu.cs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Intersect.Client/Core/Input.cs b/Intersect.Client/Core/Input.cs index 2367f4f8db..45683d5d15 100644 --- a/Intersect.Client/Core/Input.cs +++ b/Intersect.Client/Core/Input.cs @@ -137,7 +137,7 @@ public static void OnKeyPressed(Keys modifier, Keys key) if (simplifiedEscapeMenuSetting) { - Interface.Interface.GameUi?.SimplifiedEscapeMenu?.ToggleHidden(); + Interface.Interface.GameUi?.GameMenu?.ToggleSimplifiedEscapeMenu(); } else { diff --git a/Intersect.Client/Interface/Game/Menu.cs b/Intersect.Client/Interface/Game/Menu.cs index 7b41abcc35..55cfac1f28 100644 --- a/Intersect.Client/Interface/Game/Menu.cs +++ b/Intersect.Client/Interface/Game/Menu.cs @@ -282,6 +282,11 @@ public void ToggleQuestsWindow() } } + public void ToggleSimplifiedEscapeMenu() + { + Interface.GameUi?.SimplifiedEscapeMenu?.ToggleHidden(mMenuButton); + } + public void ToggleSpellsWindow() { if (mSpellsWindow.IsVisible()) @@ -361,7 +366,7 @@ private void MenuButtonClicked(Base sender, ClickedEventArgs arguments) if (simplifiedEscapeMenuSetting) { - Interface.GameUi?.SimplifiedEscapeMenu?.ToggleHidden(mMenuButton); + ToggleSimplifiedEscapeMenu(); } else {