mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-10-22 19:22:04 +00:00
When removeControl() removes a Flash element (e.g. the Reinstall button in Help & Options, or the Debug button when disabled), the C++ control object stays in the m_controls vector. On Vita this was handled by calling setHidden(true) and checking getHidden() in the touch hit-test, but on Windows64 none of that was happening. The result: removed buttons kept phantom bounds that the hover code would match against, stealing focus from the buttons that shifted into their visual position. In the Help & Options menu with debug enabled, the removed Reinstall button (Button6) had ghost bounds overlapping where the Debug button (Button7) moved to after the removal, making Debug un-hoverable and snapping focus to Button1. The fix has three parts: - removeControl() now calls setHidden(true) on all platforms, not just Vita. The m_bHidden member was already declared on all platforms, only the accessors were ifdef'd behind __PSVITA__. - Removed the __PSVITA__ ifdef from setHidden/getHidden in UIControl.h so they're available everywhere. - Added getHidden() checks in both the hover and click hit-test loops, matching what the Vita touch code already does. The check is a simple bool read (no Flash/Iggy call), placed before the getVisible() query which hits Flash and can return stale values for removed elements. |
||
|---|---|---|
| .. | ||
| Audio | ||
| Colours | ||
| DLC | ||
| DummyTexturePack/res | ||
| Filesystem | ||
| 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 | ||