Fix chest slot states and center Pokédex focus #77

Merged
smell-of-curry merged 3 commits from hotfix/fix-chest-uis into main 2026-12-02 14:15:33 +00:00

Combines Nathan’s chest UI hotfix with the search and shared-control defaults from #76. Pair with the BEH hotfix branch.

  • Keep the same icon position across default, pressed, locked and hover states. Preserve the compact PokéStop reward-cell inset.
  • Let the slot-owning button decide whether a Battle Loot slot is enabled so disabled entries stay locked. Preserve plain and themed search defaults.
  • Place legacy inventory and hotbar hitboxes directly on their painted cells. The slot offset moves the button, icon, stack count, badge, durability bar and focus border together. Battle Loot and Pokédex use their own grid origins.

Local checks passed: 16 Jest suites and 102 tests, the full resource-pack build, and inspection of the built UI split archive. Its chest, search and Pokédex JSON match the sources, and the packed background matches the source pixel for pixel. The go-test-bds viewer resolved the center of each sampled painted cell to the expected button in legacy chest and inventory grids, the 18-slot layout, PokéStop, Battle Loot and Pokédex. Native Bedrock hover, controller focus and touch still need a retail client check.

Combines Nathan’s chest UI hotfix with the search and shared-control defaults from #76. Pair with the [BEH hotfix branch](https://git.pokebedrock.com/pokebedrock/pokebedrock-beh/src/branch/hotfix/fix-chest-uis). - Keep the same icon position across default, pressed, locked and hover states. Preserve the compact PokéStop reward-cell inset. - Let the slot-owning button decide whether a Battle Loot slot is enabled so disabled entries stay locked. Preserve plain and themed search defaults. - Place legacy inventory and hotbar hitboxes directly on their painted cells. The slot offset moves the button, icon, stack count, badge, durability bar and focus border together. Battle Loot and Pokédex use their own grid origins. Local checks passed: 16 Jest suites and 102 tests, the full resource-pack build, and inspection of the built UI split archive. Its chest, search and Pokédex JSON match the sources, and the packed background matches the source pixel for pixel. The go-test-bds viewer resolved the center of each sampled painted cell to the expected button in legacy chest and inventory grids, the 18-slot layout, PokéStop, Battle Loot and Pokédex. Native Bedrock hover, controller focus and touch still need a retail client check.
Reworked chest UI button/layout wiring so default, hover, pressed, and locked states share consistent icon/offset behavior while still allowing per-slot overrides (including a dedicated Pokestop slot variant). Disabled-slot locking now uses explicit type checks and a separate locked control instead of reusing the default face. Added default factory variables to `long_form_dynamic_buttons_panel` so base search forms inherit sane defaults without overriding themed variants, and nudged the Pokedex chest grid offset to match the updated slot alignment.
Integrate shared chest offsets and keep locked slots inert
All checks were successful
Auto Assign / run (pull_request_target) Successful in 7s
CI / build-and-test (20.x) (pull_request) Successful in 1m2s
Model Preview / model-preview (pull_request) Successful in 2m49s
33798f0d2a
Preserve the search and nested-control defaults from RES PR #76 alongside Nathan’s separate locked face and PokéStop variant. Share one icon offset across button states, leave the Battle Loot wrapper out of enablement, and align Pokédex focus with the painted cells.
smell-of-curry was assigned by forgejo-actions 2026-12-02 13:43:08 +00:00
Align chest slot hitboxes with painted cells
All checks were successful
CI / build-and-test (20.x) (pull_request) Successful in 46s
Model Preview / model-preview (pull_request) Successful in 1m28s
0fc3a600a3
Place the legacy row gap on the physical button once. Keep focus, icons, stack counts, badges and durability in that button’s own coordinate space. Preserve direct cell origins for Battle Loot, Pokédex and the compact layouts.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pokebedrock/pokebedrock-res!77
No description provided.