MinecraftConsoles/Minecraft.Client/Common
MrTheShy 90b5c2d51a Add mouse click support to CraftingMenu (tab switching, slot selection, craft)
The crafting screen's horizontal recipe slots and category tabs are custom-drawn
via Iggy callbacks rather than regular Flash buttons, so the standard mouse hover
system can't interact with them. This adds handleMouseClick to derive clickable
regions from the H slot positions cached during customDraw.

Tab clicking: tab hitboxes are computed relative to the H slot row since the
Vita TouchPanel overlays (full-screen invisible rectangles) aren't suitable
for direct hit-testing on Win64. The Y bounds were tuned empirically to match
the SWF tab icon positions. Clicking a tab runs the same switch logic as
LB/RB: hide old highlight, update group index, reset slot indices,
recalculate recipes, and refresh the display.

H slot clicking: clicking a different recipe slot selects it (updating V slots,
highlight, and re-showing the previous slot). Clicking the already-selected
slot crafts the item by dispatching ACTION_MENU_A through handleKeyDown,
reusing the existing crafting path. Empty slots (iCount == 0) are ignored.

All mouse clicks on the scene are consumed (return true) to prevent misses
from falling through as ACTION_MENU_A and accidentally triggering a craft.
This only suppresses mouse-originated A presses via m_mouseClickConsumedByScene;
keyboard and controller A remain fully functional.

Also enables GetMainPanel for Win64 (was Vita-only) so the mouse hover system
can filter controls by active panel, same as other tabbed menus.
2026-03-06 04:43:56 +01:00
..
Audio Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
Colours Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
DLC Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
DummyTexturePack/res Initial commit 2026-03-01 12:16:08 +08:00
GameRules Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
Leaderboards feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Media Fix DLCs textures and update logo in 720p (#517) 2026-03-05 15:12:50 +07:00
Network Trim newline characters from IP address (#600) 2026-03-05 14:27:08 -06:00
res feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Telemetry Initial commit 2026-03-01 12:16:08 +08:00
Trial Initial commit 2026-03-01 12:16:08 +08:00
Tutorial Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
UI Add mouse click support to CraftingMenu (tab switching, slot selection, craft) 2026-03-06 04:43:56 +01:00
XUI Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
zlib Revert "Get rid of MSVC's __int64" 2026-03-02 17:39:35 +07:00
App_Defines.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
App_enums.h shift + click for quickmove (#278) 2026-03-03 23:27:23 +07:00
App_structs.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
BuildVer.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
C4JMemoryPool.h Initial commit 2026-03-01 12:16:08 +08:00
C4JMemoryPoolAllocator.h Initial commit 2026-03-01 12:16:08 +08:00
CommonMedia.sln Initial commit 2026-03-01 12:16:08 +08:00
CommonMedia.vcxproj Initial commit 2026-03-01 12:16:08 +08:00
CommonMedia.vcxproj.filters Initial commit 2026-03-01 12:16:08 +08:00
Console_Awards_enum.h Initial commit 2026-03-01 12:16:08 +08:00
Console_Debug_enum.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Console_Utils.cpp Initial commit 2026-03-01 12:16:08 +08:00
ConsoleGameMode.cpp Optimize Path for Tutorial.h in ConsoleGameMode.cpp 2026-03-01 15:05:24 -07:00
ConsoleGameMode.h Optimize TutorialMode.h Filepath in ConsoleGameMode.h 2026-03-01 15:06:42 -07:00
Consoles_App.cpp Fix gamma slider via pixel shader #178 (#481) 2026-03-06 02:41:17 +07:00
Consoles_App.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Minecraft_Macros.h Initial commit 2026-03-01 12:16:08 +08:00
PostProcesser.h Fix gamma slider via pixel shader #178 (#481) 2026-03-06 02:41:17 +07:00
Potion_Macros.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
xuiscene_base.h Initial commit 2026-03-01 12:16:08 +08:00