Skip to content

Commit 0202334

Browse files
committed
fixed issue where buy menu gui could ignore mouse events
1 parent 9e1367e commit 0202334

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
254254

255255
- Fixed a minor inconsistency where `ACDropShip`s were frequently referred to as `ACDropship`s in Lua, the lower case 's' invalidating keywords where the typo occured.
256256

257+
- Fixed an issue where the buy menu GUI could ignore mouse hover events until you clicked to reset the focus.
258+
257259
</details>
258260

259261
<details><summary><b>Removed</b></summary>

Source/Menus/BuyMenuGUI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,9 @@ void BuyMenuGUI::Update() {
744744
// Animate the menu into and out of view if enabled or disabled
745745

746746
if (m_MenuEnabled == ENABLING) {
747+
// Make sure that nobody can hoard focus away from us
748+
m_pGUIController->GetManager()->ReleaseMouse();
749+
747750
m_pParentBox->SetEnabled(true);
748751
m_pParentBox->SetVisible(true);
749752

0 commit comments

Comments
 (0)