feat(menus): the game's menu prompts are clickable #3219

Merged
HumanBean merged 2 commits from dyst/Longshot:feat/clickable-prompts into main 2026-12-05 17:25:06 +00:00
Member

Summary

The system screens' overlay (title screen, file select, Options, the save screen) and the pause menu show button prompts at the bottom right: "Select (A)", "Back (B)", Options' "Default Settings (Y)". With the mouse, only Back could be clicked, by a fixed box. This makes shown prompts for A, B, X, Y, L, ZL, R and ZR clickable, the game's and any a mod shows, with nothing for a mod to do: a click on a prompt presses its button when no menu button is under the click.

How: the game's guide fills (sites menu.guideSet, menu.pauseGuideSet, and the engine's callbacks) note each guide's key; a click that lands on no menu button but on a shown guide's pane taps that guide's key. The Widescreen mod tells the clicks how the system overlay is drawn while it covers a wider picture, so the hit boxes follow it at 21:9.

Read first: note_guide, prompt_at and pane_rect in game/crates/game-core/src/menus.rs; the two sites in game/sites/sites.toml; set_system_overlay_units in game/mods/widescreen/src/ui.rs.

Windows only, like the menus' mouse itself: on Linux the game's menus take no mouse yet (MOUSE_MENUS is cfg!(windows) on main, and tick returns before the mouse), so there is nothing for a prompt click to join there. Linux follows when the menus' mouse comes to Linux, which is not this PR.

This is part 2 of #2642 (the core part, which comes first). Part 1, a mod API to set a screen's prompts (ui.prompts.set/reset), is not in here. See #2642.

Testing

Tested: Windows 11, RTX 3080 (NVIDIA 621.47), 3440x1440 (21:9), played by hand with the mouse in a build of main f359e2621 with this commit: clicking the prompts at the bottom right pressed their buttons. Again the same day with the Widescreen fix (separate PR) on top, Ultrawide menus Centred: the clicks still landed on the prompts where they are drawn.

cargo fmt --check, cargo test and cargo clippy before the button priority fix, this PC (Windows 11, Rust 1.99.1 gnullvm): game-core 411 passed, sysmod-widescreen 61, sites 46 + 6, none failed; clippy names nothing in these crates (its warnings are main's).

Still to test:

  • Windows, 16:9: click each prompt of the title screen's file select, Options (Default Settings) and the pause menu, expecting its button pressed (by hand)
  • Windows, a controller plugged in while clicking: the prompts' icons change, expecting the clicks unchanged (by hand)

Measurements

Not measured: a guide fill notes one key in a small table; the hit test runs only on a mouse click in a menu.

Risks

The menus' mouse only (Windows): a click that lands on a menu button is that button, including where it overlaps a prompt or the old fixed Back box; a click off the buttons on a shown prompt for a supported key presses that prompt's button; the old fixed Back box applies when no supported prompt is found. No setting, save or cache changes; a revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named). Not run whole yet: the crates' tests above.
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • Docs updated (docs/user/graphics-and-controls.md, the menus' mouse).
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary The system screens' overlay (title screen, file select, Options, the save screen) and the pause menu show button prompts at the bottom right: "Select (A)", "Back (B)", Options' "Default Settings (Y)". With the mouse, only Back could be clicked, by a fixed box. This makes shown prompts for A, B, X, Y, L, ZL, R and ZR clickable, the game's and any a mod shows, with nothing for a mod to do: a click on a prompt presses its button when no menu button is under the click. How: the game's guide fills (sites `menu.guideSet`, `menu.pauseGuideSet`, and the engine's callbacks) note each guide's key; a click that lands on no menu button but on a shown guide's pane taps that guide's key. The Widescreen mod tells the clicks how the system overlay is drawn while it covers a wider picture, so the hit boxes follow it at 21:9. Read first: `note_guide`, `prompt_at` and `pane_rect` in `game/crates/game-core/src/menus.rs`; the two sites in `game/sites/sites.toml`; `set_system_overlay_units` in `game/mods/widescreen/src/ui.rs`. Windows only, like the menus' mouse itself: on Linux the game's menus take no mouse yet (`MOUSE_MENUS` is `cfg!(windows)` on `main`, and `tick` returns before the mouse), so there is nothing for a prompt click to join there. Linux follows when the menus' mouse comes to Linux, which is not this PR. This is part 2 of #2642 (the core part, which comes first). Part 1, a mod API to set a screen's prompts (`ui.prompts.set/reset`), is not in here. See #2642. ## Testing **Tested:** Windows 11, RTX 3080 (NVIDIA 621.47), 3440x1440 (21:9), played by hand with the mouse in a build of `main` f359e2621 with this commit: clicking the prompts at the bottom right pressed their buttons. Again the same day with the Widescreen fix (separate PR) on top, Ultrawide menus Centred: the clicks still landed on the prompts where they are drawn. `cargo fmt --check`, `cargo test` and `cargo clippy` before the button priority fix, this PC (Windows 11, Rust 1.99.1 gnullvm): `game-core` 411 passed, `sysmod-widescreen` 61, `sites` 46 + 6, none failed; clippy names nothing in these crates (its warnings are `main`'s). **Still to test:** - Windows, 16:9: click each prompt of the title screen's file select, Options (Default Settings) and the pause menu, expecting its button pressed (by hand) - Windows, a controller plugged in while clicking: the prompts' icons change, expecting the clicks unchanged (by hand) ## Measurements Not measured: a guide fill notes one key in a small table; the hit test runs only on a mouse click in a menu. ## Risks The menus' mouse only (Windows): a click that lands on a menu button is that button, including where it overlaps a prompt or the old fixed Back box; a click off the buttons on a shown prompt for a supported key presses that prompt's button; the old fixed Back box applies when no supported prompt is found. No setting, save or cache changes; a revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (any failure that also fails on `main` is named). Not run whole yet: the crates' tests above. - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] Docs updated (`docs/user/graphics-and-controls.md`, the menus' mouse). - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(menus): the game's menu prompts are clickable (#2642)
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
PR description / Title and description (pull_request_target) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
9b715c57dd
The system screens' overlay and the pause menu's show button prompts at the bottom right; only Back, by a fixed
box, could be clicked. The game's guide fills (sites menu.guideSet, menu.pauseGuideSet, engine callbacks) note
each guide's key, and a click off the buttons on a shown guide taps its key. The Widescreen mod tells the clicks
how the system overlay is drawn while it covers a wider picture.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, RTX 3080 (NVIDIA 621.47), 3440x1440 (21:9), by hand with the mouse on main f359e2621 + this: clicking the bottom-right prompts pressed their buttons; again with the Widescreen fix on top (Ultrawide menus Centred), the clicks still landed on the prompts.

Tested in game: Windows 11, RTX 3080 (NVIDIA 621.47), 3440x1440 (21:9), by hand with the mouse on main f359e2621 + this: clicking the bottom-right prompts pressed their buttons; again with the Widescreen fix on top (Ultrawide menus Centred), the clicks still landed on the prompts.
Member

Possibly related, for context:

  • PR #3218 WIP: fix(widescreen): the system overlay's header and prompts at their own shape on a wider picture, not stretched — Separate open fix changes the widescreen overlay geometry used by prompt hitboxes.
Possibly related, for context: - PR #3218 WIP: fix(widescreen): the system overlay's header and prompts at their own shape on a wider picture, not stretched — Separate open fix changes the widescreen overlay geometry used by prompt hitboxes.
dyst changed title from WIP: feat(menus): the game's menu prompts are clickable to feat(menus): the game's menu prompts are clickable 2026-12-05 01:45:13 +00:00
BeanBot requested changes 2026-12-05 01:47:03 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. Prompt hit boxes take priority over overlapping menu buttons, contrary to the described behavior. The feature also cannot work on Linux because the menu mouse path returns before processing clicks.

The change records overlay guide keys and maps clicks on their panes to button presses, including a widescreen coordinate adjustment. It adds useful mouse access on Windows, but changes click priority and leaves Linux without the advertised behavior.

Blocking (2): must change before merging.

  1. L1 game/crates/game-core/src/menus.rs:418: A prompt rectangle suppresses menu-button hit testing before the buttons are checked, reversing the priority promised by the change. (more on the line) Do: Find the button under the mouse first, and use prompt hit testing only when no button was hit. Add a test with overlapping button and guide rectangles.
  2. L2 game/crates/game-core/src/menus.rs:1151: The new prompt click handling is unreachable on Linux. (more on the line) Do: Implement and enable the menu mouse path on Linux, including its host pointer handling, or explicitly narrow the feature and its Linux testing claim to Windows.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L3: The reported run does not cover the individual menu and controller-icon cases listed as still to test. When: The Windows ultrawide report says prompts worked but does not establish that each listed screen and its prompts respond correctly at 16:9 or with a controller connected. Do: Run the listed Windows 16:9 and connected-controller prompt checks, including Options and the pause menu, and record the results.

@fix can do L1 and L2.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the Windows configuration tested: the author reports that bottom-right prompt clicks pressed their buttons at 3440×1440, including with the separate Widescreen fix. Coverage of individual screens, controller icons and Linux remains incomplete; this is not a performance change.

Other systems: The mouse menu path is Windows-only, so Linux cannot use the new click handling. The author tested one NVIDIA Windows ultrawide setup; the remaining screen and controller cases have not been reported. The change does not alter saves, renderer interfaces or GPU settings.

Switches: None added, changed or removed. The existing HOS_MENU_TRACE switch gains prompt diagnostics.

Reviewed: 9b715c57dd against f359e26213: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards and the screenshot maintenance rules; docs/review-checklist.md and the sibling Tooling checkout were absent. Reviewed the complete diff and commit, menus code and related memory and input paths, the widescreen coordinate calculation, site declarations, tests, documentation change and site ownership entries. The remaining unchanged portions of the large sites and widescreen files were skimmed.; nothing run (a code review).

Checked and fine:

  • The commit records AI assistance in trailers.
  • No game-derived output, generated files or third-party files appear in the diff.
  • The new guide-key table is protected by a mutex and the widescreen scale uses an atomic.

Testing: No commands that build, run tests or execute project code were run, as requested. CI is still running; the author reports an in-game Windows ultrawide run.

Overlaps and merge order: The description identifies this as part 2 of #2642 and refers to a separate Widescreen fix; their merge status was not available in the supplied evidence.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as dyst took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** Prompt hit boxes take priority over overlapping menu buttons, contrary to the described behavior. The feature also cannot work on Linux because the menu mouse path returns before processing clicks. The change records overlay guide keys and maps clicks on their panes to button presses, including a widescreen coordinate adjustment. It adds useful mouse access on Windows, but changes click priority and leaves Linux without the advertised behavior. **Blocking (2)**: must change before merging. 1. **L1** `game/crates/game-core/src/menus.rs:418`: A prompt rectangle suppresses menu-button hit testing before the buttons are checked, reversing the priority promised by the change. (more on the line) **Do:** Find the button under the mouse first, and use prompt hit testing only when no button was hit. Add a test with overlapping button and guide rectangles. 2. **L2** `game/crates/game-core/src/menus.rs:1151`: The new prompt click handling is unreachable on Linux. (more on the line) **Do:** Implement and enable the menu mouse path on Linux, including its host pointer handling, or explicitly narrow the feature and its Linux testing claim to Windows. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L3**: The reported run does not cover the individual menu and controller-icon cases listed as still to test. *When:* The Windows ultrawide report says prompts worked but does not establish that each listed screen and its prompts respond correctly at 16:9 or with a controller connected. **Do:** Run the listed Windows 16:9 and connected-controller prompt checks, including Options and the pause menu, and record the results. `@fix` can do L1 and L2. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the Windows configuration tested: the author reports that bottom-right prompt clicks pressed their buttons at 3440×1440, including with the separate Widescreen fix. Coverage of individual screens, controller icons and Linux remains incomplete; this is not a performance change. **Other systems:** The mouse menu path is Windows-only, so Linux cannot use the new click handling. The author tested one NVIDIA Windows ultrawide setup; the remaining screen and controller cases have not been reported. The change does not alter saves, renderer interfaces or GPU settings. **Switches:** None added, changed or removed. The existing HOS_MENU_TRACE switch gains prompt diagnostics. **Reviewed:** 9b715c57dddb against f359e2621315: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards and the screenshot maintenance rules; docs/review-checklist.md and the sibling Tooling checkout were absent. Reviewed the complete diff and commit, menus code and related memory and input paths, the widescreen coordinate calculation, site declarations, tests, documentation change and site ownership entries. The remaining unchanged portions of the large sites and widescreen files were skimmed.; nothing run (a code review). **Checked and fine:** - The commit records AI assistance in trailers. - No game-derived output, generated files or third-party files appear in the diff. - The new guide-key table is protected by a mutex and the widescreen scale uses an atomic. **Testing:** No commands that build, run tests or execute project code were run, as requested. CI is still running; the author reports an in-game Windows ultrawide run. **Overlaps and merge order:** The description identifies this as part 2 of #2642 and refers to a separate Widescreen fix; their merge status was not available in the supplied evidence. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as dyst took it out of WIP. Nothing was run; a maintainer decides.</sub>
@ -266,3 +416,3 @@
});
list_boxes(h);
if on_back_prompt(h.x, h.y) {
if on_back_prompt(h.x, h.y) || prompt_at(h.x, h.y).is_some() {
Member

L1 (blocking): A prompt rectangle suppresses menu-button hit testing before the buttons are checked, reversing the priority promised by the change.

When: When a shown guide pane overlaps a menu button's hit box, hit_test returns with hit equal to zero. The click then taps the guide's key instead of focusing and selecting the button.

Do: Find the button under the mouse first, and use prompt hit testing only when no button was hit. Add a test with overlapping button and guide rectangles.

**L1** (blocking): A prompt rectangle suppresses menu-button hit testing before the buttons are checked, reversing the priority promised by the change. *When:* When a shown guide pane overlaps a menu button's hit box, hit_test returns with hit equal to zero. The click then taps the guide's key instead of focusing and selecting the button. **Do:** Find the button under the mouse first, and use prompt hit testing only when no button was hit. Add a test with overlapping button and guide rectangles.
@ -1002,1 +1149,3 @@
host_sys::input::tap("0:B/80");
// A prompt at the bottom right, off the buttons: a guide the overlays' fills noted taps its key (Back's B,
// a mod's X ...); else the "Back" prompt's fixed box (B), on every screen with one (the title's load list, the
// pause menu, the map).
Member

L2 (blocking): The new prompt click handling is unreachable on Linux.

When: On Linux, MOUSE_MENUS is false and tick returns before mouse_tick, so clicking Select, Back or another prompt never reaches this code.

Do: Implement and enable the menu mouse path on Linux, including its host pointer handling, or explicitly narrow the feature and its Linux testing claim to Windows.

**L2** (blocking): The new prompt click handling is unreachable on Linux. *When:* On Linux, MOUSE_MENUS is false and tick returns before mouse_tick, so clicking Select, Back or another prompt never reaches this code. **Do:** Implement and enable the menu mouse path on Linux, including its host pointer handling, or explicitly narrow the feature and its Linux testing claim to Windows.
Author
Member

Checks on this PC (Windows 11, Rust 1.99.1 gnullvm), on the head 9b715c57d: cargo fmt --check clean for game-core, sysmod-widescreen and sites; cargo test: game-core 411 passed, sysmod-widescreen 61, sites 46 + 6, none failed; cargo clippy --all-targets nothing in these crates (the warnings it prints are main's, in build-core, build-assets and host-sys). (game-core and sysmod-widescreen were run with #3218 on top; sites on this commit alone.)

Checks on this PC (Windows 11, Rust 1.99.1 gnullvm), on the head 9b715c57d: `cargo fmt --check` clean for `game-core`, `sysmod-widescreen` and `sites`; `cargo test`: `game-core` 411 passed, `sysmod-widescreen` 61, `sites` 46 + 6, none failed; `cargo clippy --all-targets` nothing in these crates (the warnings it prints are main's, in `build-core`, `build-assets` and `host-sys`). (`game-core` and `sysmod-widescreen` were run with #3218 on top; `sites` on this commit alone.)
Author
Member

On BeanBot's review (9b715c57d):

  • L1, a prompt over a menu button: not changed. The prompts are the footer's button hints at the bottom right of the system overlay and the pause menu ("Select (A)", "Back (B)", ...), and no menu button is drawn there on any of these screens, so a click can't be on both. The order isn't new either: main already checks the fixed Back box before the buttons in hit_test; this PR adds the other shown prompts to that same check.
  • L2, Linux: narrowed to Windows. The menus' mouse is Windows-only on main (MOUSE_MENUS = cfg!(windows), and the user docs say "(Windows)"), so prompt clicks are too. The Linux line is gone from Still to test, and the description says so. Bringing the menus' mouse to Linux is separate work, deferred.
  • L3: still to test, as Testing lists it (16:9, a controller plugged in).
On BeanBot's review (9b715c57d): - **L1, a prompt over a menu button:** not changed. The prompts are the footer's button hints at the bottom right of the system overlay and the pause menu ("Select (A)", "Back (B)", ...), and no menu button is drawn there on any of these screens, so a click can't be on both. The order isn't new either: `main` already checks the fixed Back box before the buttons in `hit_test`; this PR adds the other shown prompts to that same check. - **L2, Linux:** narrowed to Windows. The menus' mouse is Windows-only on `main` (`MOUSE_MENUS = cfg!(windows)`, and the user docs say "(Windows)"), so prompt clicks are too. The Linux line is gone from Still to test, and the description says so. Bringing the menus' mouse to Linux is separate work, deferred. - **L3:** still to test, as Testing lists it (16:9, a controller plugged in).
Owner
@rebase
Member

I rebased this pull request onto main (b6330a5b0b): the new head is 16e316fbfd.

Conflicts resolved

  • builder/crates/sites/tests/site_owners.txt: Kept the pause-button and guide site entries in matching order.
  • game/sites/sites.toml: Kept both the pause-button site definitions and the clickable-guide site definitions.

Nothing was built or run: read the resolution before merging.


Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I rebased this pull request onto `main` (b6330a5b0b0e): the new head is 16e316fbfd59. **Conflicts resolved** - builder/crates/sites/tests/site_owners.txt: Kept the pause-button and guide site entries in matching order. - game/sites/sites.toml: Kept both the pause-button site definitions and the clickable-guide site definitions. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed feat/clickable-prompts from 9b715c57dd
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
PR description / Title and description (pull_request_target) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 16e316fbfd
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-05 17:13:48 +00:00
Compare
BeanBot left a comment

Recommendation: Request changes. A prompt hit still takes priority over a menu button when their rectangles overlap, contrary to the promised behavior. The remaining 16:9 and controller-icon cases also need an in-game run.

Makes menu button prompts clickable on Windows and adjusts system-overlay hit coordinates for widescreen layouts. It adds guide tracking and hit testing, with an unresolved button-priority conflict.

Blocking (1): must change before merging.

  1. L1 game/crates/game-core/src/menus.rs:418: A prompt rectangle suppresses menu-button hit testing before the buttons are checked, reversing the priority promised by the change. When: When a shown guide pane overlaps a menu button's hit box, hit_test returns with hit equal to zero. The click then taps the guide's key instead of focusing and selecting the button. Do: Find the button under the mouse first, and use prompt hit testing only when no button was hit. Add a test with overlapping button and guide rectangles.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L3: The reported run does not cover the individual menu and controller-icon cases listed as still to test. When: The Windows ultrawide report says prompts worked but does not establish that each listed screen and its prompts respond correctly at 16:9 or with a controller connected. Do: Run the listed Windows 16:9 and connected-controller prompt checks, including Options and the pause menu, and record the results.

@fix can do L1.

Since the last review (on 9b715c57dd)
Withdrawn (it was wrong): L2 (The new prompt click handling is unreachable on Linux.)
Still open: L1 (A prompt rectangle suppresses menu-button hit testing before the buttons are checked, reve…); L3 (The reported run does not cover the individual menu and controller-icon cases listed as st…)

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes: the author reports that prompt clicks pressed their buttons on Windows at 3440×1440, including with the widescreen fix. The individual 16:9 menu and controller-icon cases remain untested.

Other systems: Linux retains the existing disabled mouse-menu path. Widescreen overlay coordinates are adjusted and were exercised in the reported Windows run; controller icon changes and 16:9 menus remain to be tested.

Switches: No switches added, changed or removed. The existing HOS_MENU_TRACE switch also logs prompt information when enabled; its default remains off.

Reviewed: 16e316fbfd against b6330a5b0b: Read the diff, commit summary, AGENTS.md, CONTRIBUTING.md, pull request template, and relevant menu hit-testing and platform paths. Skimmed the changed code files, site declarations and recorded test reports; the full changed code files were not read in full. The referenced Tooling AGENTS.md and docs/review-checklist.md were not present.; nothing run (a code review).

Checked and fine:

  • The existing Linux early return matches the Windows-only feature scope.
  • The widescreen release path resets the overlay coordinate scale.
  • The reported Windows ultrawide run exercised prompt clicks.

Testing: No commands that build or run project code were executed. The author reports Windows in-game testing and crate checks; CI is still running.

Overlaps and merge order: None identified; the description references a separate widescreen fix used in testing.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** A prompt hit still takes priority over a menu button when their rectangles overlap, contrary to the promised behavior. The remaining 16:9 and controller-icon cases also need an in-game run. Makes menu button prompts clickable on Windows and adjusts system-overlay hit coordinates for widescreen layouts. It adds guide tracking and hit testing, with an unresolved button-priority conflict. **Blocking (1)**: must change before merging. 1. **L1** `game/crates/game-core/src/menus.rs:418`: A prompt rectangle suppresses menu-button hit testing before the buttons are checked, reversing the priority promised by the change. *When:* When a shown guide pane overlaps a menu button's hit box, hit_test returns with hit equal to zero. The click then taps the guide's key instead of focusing and selecting the button. **Do:** Find the button under the mouse first, and use prompt hit testing only when no button was hit. Add a test with overlapping button and guide rectangles. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L3**: The reported run does not cover the individual menu and controller-icon cases listed as still to test. *When:* The Windows ultrawide report says prompts worked but does not establish that each listed screen and its prompts respond correctly at 16:9 or with a controller connected. **Do:** Run the listed Windows 16:9 and connected-controller prompt checks, including Options and the pause menu, and record the results. `@fix` can do L1. **Since the last review** (on 9b715c57dddb) Withdrawn (it was wrong): L2 (The new prompt click handling is unreachable on Linux.) Still open: L1 (A prompt rectangle suppresses menu-button hit testing before the buttons are checked, reve…); L3 (The reported run does not cover the individual menu and controller-icon cases listed as st…) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports that prompt clicks pressed their buttons on Windows at 3440×1440, including with the widescreen fix. The individual 16:9 menu and controller-icon cases remain untested. **Other systems:** Linux retains the existing disabled mouse-menu path. Widescreen overlay coordinates are adjusted and were exercised in the reported Windows run; controller icon changes and 16:9 menus remain to be tested. **Switches:** No switches added, changed or removed. The existing HOS_MENU_TRACE switch also logs prompt information when enabled; its default remains off. **Reviewed:** 16e316fbfd59 against b6330a5b0b0e: Read the diff, commit summary, AGENTS.md, CONTRIBUTING.md, pull request template, and relevant menu hit-testing and platform paths. Skimmed the changed code files, site declarations and recorded test reports; the full changed code files were not read in full. The referenced Tooling AGENTS.md and docs/review-checklist.md were not present.; nothing run (a code review). **Checked and fine:** - The existing Linux early return matches the Windows-only feature scope. - The widescreen release path resets the overlay coordinate scale. - The reported Windows ultrawide run exercised prompt clicks. **Testing:** No commands that build or run project code were executed. The author reports Windows in-game testing and crate checks; CI is still running. **Overlaps and merge order:** None identified; the description references a separate widescreen fix used in testing. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
Owner
@fix
BeanBot force-pushed feat/clickable-prompts from 16e316fbfd
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 3ea3b9e0aa
Some checks failed
PR description / Title and description (pull_request_target) Failing after 7s
CI / What the change needs (pull_request) Successful in 9s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Waiting to run
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Waiting to run
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Waiting to run
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Waiting to run
CI / Website build and checks (pull_request) Waiting to run
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
2026-12-05 17:20:35 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The reported Windows run shows prompt clicks working at 21:9, but the listed 16:9 menu cases and clicking with a controller connected remain untested. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 3ea3b9e0aa. I rebased it onto main (b80297399b). I edited its description to match the change.

Changed

  • Button priority in game/crates/game-core/src/menus.rs:427: Removed the early prompt check so button hit testing runs first, and added coverage for overlapping button and guide rectangles. Tests were not run as requested.

Nothing was built or run: the checks run again on the new head.

The change makes supported menu button prompts clickable and gives menu buttons priority where their hit boxes overlap prompts. The fix preserves prompt clicks when no button is under the pointer.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L3: The reported run does not cover the individual menu and controller-icon cases listed as still to test. When: The Windows ultrawide report says prompts worked but does not establish that each listed screen and its prompts respond correctly at 16:9 or with a controller connected. Do: Run the listed Windows 16:9 and connected-controller prompt checks, including Options and the pause menu, and record the results.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (2; not asked for, not blocking)
  • CI has not run on this head, and the pull request is reported as unmergeable.
  • The base-to-head diff includes additional commits beyond the prompt-click feature.
More: does it help, other systems, switches, what was read

Does it help: Unproven for all listed cases: the author reports successful prompt clicks on Windows at 21:9, including with centred widescreen menus; the individual 16:9 and controller-icon cases remain to be tested.

Other systems: Menu mouse input remains Windows-only. The widescreen mod supplies the system overlay's coordinate scaling; the reported 21:9 run covers its centred mode. Controller-connected behavior remains untested.

Switches: None added, changed or removed by the prompt-click change.

Reviewed: 3ea3b9e0aa against b80297399b: Read the repository's AGENTS.md, CONTRIBUTING.md and pull request template, the fix diff, and the prompt, hit-test and relevant test code in menus.rs. Skimmed the feature diff and the remaining menus.rs code; the full base-to-head diff also contains unrelated commits and was not read in full. The referenced Tooling AGENTS.md and docs/review-checklist.md were unavailable.; nothing run (a code review).

Checked and fine:

  • Button hit testing now runs before prompt handling; clicks off buttons can still reach prompt handling.
  • The fix adds an overlap test and retains the prompt hit test.

Testing: No commands that build or run tests were executed. The author reports an in-game 21:9 Windows run and crate checks before the button-priority fix; CI has not run on this head.

Overlaps and merge order: None found in the supplied information.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The reported Windows run shows prompt clicks working at 21:9, but the listed 16:9 menu cases and clicking with a controller connected remain untested. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 3ea3b9e0aa1b. I rebased it onto `main` (b80297399bb6). I edited its description to match the change. **Changed** - **Button priority in game/crates/game-core/src/menus.rs:427**: Removed the early prompt check so button hit testing runs first, and added coverage for overlapping button and guide rectangles. Tests were not run as requested. Nothing was built or run: the checks run again on the new head. The change makes supported menu button prompts clickable and gives menu buttons priority where their hit boxes overlap prompts. The fix preserves prompt clicks when no button is under the pointer. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L3**: The reported run does not cover the individual menu and controller-icon cases listed as still to test. *When:* The Windows ultrawide report says prompts worked but does not establish that each listed screen and its prompts respond correctly at 16:9 or with a controller connected. **Do:** Run the listed Windows 16:9 and connected-controller prompt checks, including Options and the pause menu, and record the results. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - CI has not run on this head, and the pull request is reported as unmergeable. - The base-to-head diff includes additional commits beyond the prompt-click feature. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for all listed cases: the author reports successful prompt clicks on Windows at 21:9, including with centred widescreen menus; the individual 16:9 and controller-icon cases remain to be tested. **Other systems:** Menu mouse input remains Windows-only. The widescreen mod supplies the system overlay's coordinate scaling; the reported 21:9 run covers its centred mode. Controller-connected behavior remains untested. **Switches:** None added, changed or removed by the prompt-click change. **Reviewed:** 3ea3b9e0aa1b against b80297399bb6: Read the repository's AGENTS.md, CONTRIBUTING.md and pull request template, the fix diff, and the prompt, hit-test and relevant test code in menus.rs. Skimmed the feature diff and the remaining menus.rs code; the full base-to-head diff also contains unrelated commits and was not read in full. The referenced Tooling AGENTS.md and docs/review-checklist.md were unavailable.; nothing run (a code review). **Checked and fine:** - Button hit testing now runs before prompt handling; clicks off buttons can still reach prompt handling. - The fix adds an overlap test and retains the prompt hit test. **Testing:** No commands that build or run tests were executed. The author reports an in-game 21:9 Windows run and crate checks before the button-priority fix; CI has not run on this head. **Overlaps and merge order:** None found in the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch feat/clickable-prompts 2026-12-05 17:25:06 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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
MagicBeanDev/Longshot!3219
No description provided.