Skip to content

Commit

Permalink
fix: esc key - simplified escape menu (#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arufonsu authored Nov 26, 2024
1 parent 9f8b51d commit 55cf553
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Intersect.Client/Core/Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
7 changes: 6 additions & 1 deletion Intersect.Client/Interface/Game/Menu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ public void ToggleQuestsWindow()
}
}

public void ToggleSimplifiedEscapeMenu()
{
Interface.GameUi?.SimplifiedEscapeMenu?.ToggleHidden(mMenuButton);
}

public void ToggleSpellsWindow()
{
if (mSpellsWindow.IsVisible())
Expand Down Expand Up @@ -361,7 +366,7 @@ private void MenuButtonClicked(Base sender, ClickedEventArgs arguments)

if (simplifiedEscapeMenuSetting)
{
Interface.GameUi?.SimplifiedEscapeMenu?.ToggleHidden(mMenuButton);
ToggleSimplifiedEscapeMenu();
}
else
{
Expand Down

0 comments on commit 55cf553

Please sign in to comment.