#39: tappable HUD
On phones (MobilePort.active()) the HUD's widgets take taps through small STOP hit targets (ScarecrowHud.HitTarget, at least minimum_target()), and everything beside them is still the thumbsticks': - hotbar: a tap on a main slot picks it through the number keys' path (weapon_k, applied only when combat may switch); no number keys on phones (Prompts.hotbar_key) - backpack: a tap toggles the pouch panel, a finger elsewhere (not on the panel) closes it; the panel stays inside safe_rect - tip box: an × hides tips as Backspace does (Tutorial.hide_tips) - dialogue: a Skip button on pausing conversations; a tap elsewhere advances Desktop has no targets and draws as before. Test: mobile/hud_taps_test.gd. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5392ae09af
commit
49e94874a6
7 changed files with 643 additions and 28 deletions
1
game/tests/mobile/hud_taps_test.gd.uid
Normal file
1
game/tests/mobile/hud_taps_test.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://b4y1im78s3fj3
|
||||
Loading…
Add table
Add a link
Reference in a new issue