mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-10-22 19:22:04 +00:00
The hover code was doing a redundant second hit-test against Iggy focusable object bounds after the C++ control bounds had already identified the correct control. Iggy focusable bounds are wider than the actual visible buttons and overlap vertically, so the "pick largest x0" heuristic would match focusables belonging to earlier buttons when hovering the right side of buttons 3+. Replaced the IggyPlayerGetFocusableObjects path with a direct SetFocusToElement call using the already-correct hitControlId from the C++ hit-test, same approach the click path uses in handleMouseClick. Also switched the overlap tiebreaker from "largest x0" to smallest area, consistent with how clicks resolve overlapping controls. TextInput is excluded from hover focus to avoid showing the caret on mere mouse-over (its Iggy focus is set on click). |
||
|---|---|---|
| .. | ||
| Audio | ||
| Colours | ||
| DLC | ||
| DummyTexturePack/res | ||
| GameRules | ||
| Leaderboards | ||
| Media | ||
| Network | ||
| res | ||
| Telemetry | ||
| Trial | ||
| Tutorial | ||
| UI | ||
| XUI | ||
| zlib | ||
| App_Defines.h | ||
| App_enums.h | ||
| App_structs.h | ||
| BuildVer.h | ||
| C4JMemoryPool.h | ||
| C4JMemoryPoolAllocator.h | ||
| CommonMedia.sln | ||
| CommonMedia.vcxproj | ||
| CommonMedia.vcxproj.filters | ||
| Console_Awards_enum.h | ||
| Console_Debug_enum.h | ||
| Console_Utils.cpp | ||
| ConsoleGameMode.cpp | ||
| ConsoleGameMode.h | ||
| Consoles_App.cpp | ||
| Consoles_App.h | ||
| Minecraft_Macros.h | ||
| PostProcesser.h | ||
| Potion_Macros.h | ||
| xuiscene_base.h | ||