fix(mods): hideGameHud() hides the minimap too #3154

Merged
HumanBean merged 2 commits from llun/Longshot:fix/hide-game-hud-minimap into main 2026-12-04 06:40:38 +00:00
Member

Summary

A mod's hideGameHud() hides the hearts but leaves the minimap on screen, so a photo mode still shows it in every
picture. The modding docs say the call hides the map too. A mod author reported this on Discord.

See it on main: run a mod that calls hideGameHud() in the Market (the repository save market-entrance). The
hearts go away, and the minimap stays in the bottom-right corner, with the game paused or not.

Why: the game has four 2D layers that all carry the name Layer2D. The game's action that hideGameHud() uses
hides only the first of them, and the minimap is not drawn there. Read from the game's memory in the run below: after
the call, one 2D layer was off and the other three stayed on.

The fix: while a mod holds the hide, the minimap's drawing is shrunk to nothing while its screen updates, then
put back right after. This is how the HUD toggle already hides it (#1855, futondestroyer's). It works with the widescreen
system mod on or off, and it leaves the pause menu's map alone. Nothing is written to the save or the settings.

Read first: hud_update_begin in game/mods/widescreen/src/screen.rs, and hud_hidden in
game/crates/game-core/src/pause.rs.

The docs now say what the game does: the pause menu and its Map page still show while the HUD is hidden (seen in the
run below, before and after this change).

Testing

Tested: Windows 11, RTX 5080, NVIDIA 621.47. A test mod in the game's test mode, from the repository save
market-entrance, headless. It hid the HUD, paused the game, let the pause go, added a second hide, released one, then
released the other. One picture per step, on main and on this change:

  • main f577a1aea: the minimap stayed in all five hidden pictures; the hearts went away.
  • This change (on f577a1aea): the minimap went away with the hearts in all five, paused or not, and stayed hidden
    until the last hide was released. Then both came back.
  • The widescreen system mod switched off (a throwaway profile with system/widescreen off and the test mod
    granted its two permissions by the player): the log shows the widescreen mod never started, and the minimap was
    hidden in all five pictures and back after the last release.
  • Plus in a hidden HUD opened the pause menu on both. Minus opened the Map page, which said "Unavailable right now"
    on both. Main says the same with nothing hidden at all, so that comes from the save, not this change.
  • A save further on (a copy of a player's own save, adult Link): in Kakariko Village and in Dodongo's Cavern, which
    that save has the map of, the minimap (in the dungeon, with its floor label) was hidden with the hearts while the mod
    held the hide. The pause Map page, opened during the hide, drew its full map. After the release the minimap was back.
    The small-key count was not on screen in either place before the hide (no small keys held there), so it was not seen.

Checks:

  • the_hud_a_mod_hides_takes_the_minimap_with_it (widescreen, new) fails on main for the bug (the minimap's
    drawing keeps its size) and passes here. It checks the minimap hidden and put back, the pause map left alone, and
    the minimap drawn again after the release, with the widescreen mod off and on. With the fix's key line removed it
    fails again.
  • mise run test (Windows, --strict): all 844 checks pass. 835 ran on main f577a1aea plus this change; the 9 that
    failed on that main ran again after the rebase onto ca830e895, which fixed them. test_lifter was left out: it
    holds tests that fail on main.
    cargo test of sysmod-widescreen, game-core, api, longshot-game and modtool passes, except two tests that fail on
    main and were skipped: api's a_walked_reshade_folder_counts_a_change_once_two_walks_agree and modtool's
    a_mod_written_off_the_first_time. the_menu_passes_its_tests failed once while other tests ran and passed alone.
  • cargo fmt --all --check passes. cargo clippy -D warnings fails on main's unused import: note_lines in
    build-core; nothing in this change's files.

Still to test:

  • Any PC, by hand, in a dungeon with small keys held: hideGameHud(), expecting the small-key count beside the minimap
    hidden with it, and back after the release.
  • Any PC, by hand: hideGameHud() during a text box, expecting the text box hidden as on main.
  • Linux, any GPU: @Beanstalk run the game in the Market with a mod that calls hideGameHud(); expecting the minimap hidden

Measurements

Verdict: the minimap is hidden now; no speed is measured, as the cost is one atomic read per HUD screen update.

Setup: Windows 11, RTX 5080, NVIDIA 621.47; the Market from the repository save market-entrance, 1280x720
screenshots of each step through the control bridge.

The runs were on main f577a1aea. The numbers still hold on main ca830e895: its three new commits (#3044, #3121, #3146)
don't touch the HUD screens' update, the widescreen mod or the pause code, and the tests pass again after the rebase.

Before: main @ f577a1aea After: this PR @ ccff24679
The game-free test fails passes
Minimap while a mod hides the HUD (5 pictures) shown in 5 of 5 shown in 0 of 5
Minimap after the last hide is released shown shown

Risks

Only the minimap's drawing changes, and only while a mod holds hideGameHud(). Its values are put back after each
update, so a mod that stops, crashes or is turned off leaves nothing behind. Revert to undo. Players without such a mod
see no change.

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).
  • 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

  • A fix: a game-free test that fails on main and passes here.
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • Docs updated.
  • 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 A mod's `hideGameHud()` hides the hearts but leaves the minimap on screen, so a photo mode still shows it in every picture. The modding docs say the call hides the map too. A mod author reported this on Discord. **See it on main:** run a mod that calls `hideGameHud()` in the Market (the repository save `market-entrance`). The hearts go away, and the minimap stays in the bottom-right corner, with the game paused or not. **Why:** the game has four 2D layers that all carry the name `Layer2D`. The game's action that `hideGameHud()` uses hides only the first of them, and the minimap is not drawn there. Read from the game's memory in the run below: after the call, one 2D layer was off and the other three stayed on. **The fix:** while a mod holds the hide, the minimap's drawing is shrunk to nothing while its screen updates, then put back right after. This is how the HUD toggle already hides it (#1855, futondestroyer's). It works with the widescreen system mod on or off, and it leaves the pause menu's map alone. Nothing is written to the save or the settings. Read first: `hud_update_begin` in `game/mods/widescreen/src/screen.rs`, and `hud_hidden` in `game/crates/game-core/src/pause.rs`. The docs now say what the game does: the pause menu and its Map page still show while the HUD is hidden (seen in the run below, before and after this change). ## Testing **Tested:** Windows 11, RTX 5080, NVIDIA 621.47. A test mod in the game's test mode, from the repository save `market-entrance`, headless. It hid the HUD, paused the game, let the pause go, added a second hide, released one, then released the other. One picture per step, on main and on this change: - **main f577a1aea:** the minimap stayed in all five hidden pictures; the hearts went away. - **This change (on f577a1aea):** the minimap went away with the hearts in all five, paused or not, and stayed hidden until the last hide was released. Then both came back. - **The widescreen system mod switched off** (a throwaway profile with `system/widescreen` off and the test mod granted its two permissions by the player): the log shows the widescreen mod never started, and the minimap was hidden in all five pictures and back after the last release. - Plus in a hidden HUD opened the pause menu on both. Minus opened the Map page, which said "Unavailable right now" on both. Main says the same with nothing hidden at all, so that comes from the save, not this change. - **A save further on** (a copy of a player's own save, adult Link): in Kakariko Village and in Dodongo's Cavern, which that save has the map of, the minimap (in the dungeon, with its floor label) was hidden with the hearts while the mod held the hide. The pause Map page, opened during the hide, drew its full map. After the release the minimap was back. The small-key count was not on screen in either place before the hide (no small keys held there), so it was not seen. Checks: - `the_hud_a_mod_hides_takes_the_minimap_with_it` (widescreen, new) fails on main for the bug (the minimap's drawing keeps its size) and passes here. It checks the minimap hidden and put back, the pause map left alone, and the minimap drawn again after the release, with the widescreen mod off and on. With the fix's key line removed it fails again. - `mise run test` (Windows, `--strict`): all 844 checks pass. 835 ran on main f577a1aea plus this change; the 9 that failed on that main ran again after the rebase onto ca830e895, which fixed them. `test_lifter` was left out: it holds tests that fail on main. `cargo test` of sysmod-widescreen, game-core, api, longshot-game and modtool passes, except two tests that fail on main and were skipped: `api`'s `a_walked_reshade_folder_counts_a_change_once_two_walks_agree` and `modtool`'s `a_mod_written_off_the_first_time`. `the_menu_passes_its_tests` failed once while other tests ran and passed alone. - `cargo fmt --all --check` passes. `cargo clippy -D warnings` fails on main's `unused import: note_lines` in build-core; nothing in this change's files. **Still to test:** - Any PC, by hand, in a dungeon with small keys held: `hideGameHud()`, expecting the small-key count beside the minimap hidden with it, and back after the release. - Any PC, by hand: `hideGameHud()` during a text box, expecting the text box hidden as on main. - Linux, any GPU: `@Beanstalk run the game in the Market with a mod that calls hideGameHud(); expecting the minimap hidden` ## Measurements **Verdict:** the minimap is hidden now; no speed is measured, as the cost is one atomic read per HUD screen update. Setup: Windows 11, RTX 5080, NVIDIA 621.47; the Market from the repository save `market-entrance`, 1280x720 screenshots of each step through the control bridge. The runs were on main f577a1aea. The numbers still hold on main ca830e895: its three new commits (#3044, #3121, #3146) don't touch the HUD screens' update, the widescreen mod or the pause code, and the tests pass again after the rebase. | | Before: main @ f577a1aea | After: this PR @ ccff24679 | |---|---|---| | The game-free test | fails | passes | | Minimap while a mod hides the HUD (5 pictures) | shown in 5 of 5 | shown in 0 of 5 | | Minimap after the last hide is released | shown | shown | ## Risks Only the minimap's drawing changes, and only while a mod holds `hideGameHud()`. Its values are put back after each update, so a mod that stops, crashes or is turned off leaves nothing behind. Revert to undo. Players without such a mod see no change. ## 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. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [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] A fix: a game-free test that fails on `main` and passes here. - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [x] Docs updated. - [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)
Fails on main: hideGameHud() leaves the minimap drawn.

Reported by a mod author on Discord.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(mods): hideGameHud() hides the minimap too
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 17s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m34s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 21m13s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 15m38s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 16m21s
CI / Website build and checks (pull_request) Failing after 40s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Successful in 54m6s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
ccff246795
The game has four 2D layers with the same name and its action hides the first, which does not draw the minimap. While a
mod holds the hide, the minimap's draw is collapsed for the HUD screen's update and put back after it, as the HUD toggle
does, with the widescreen mod on or off. The pause menu's map is left alone, and the docs say the pause menu still shows.

Reported by a mod author on Discord. The method is futondestroyer's (#1855).

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

Tested in game: Windows 11, RTX 5080, NVIDIA 621.47, the Market (repository save market-entrance), a test mod in the game's test mode: on main f577a1aea the minimap stayed in all 5 pictures with the HUD hidden; with this change it was hidden in all 5, paused or not, and came back with the hearts when the last hide was released.

Tested in game: Windows 11, RTX 5080, NVIDIA 621.47, the Market (repository save market-entrance), a test mod in the game's test mode: on main f577a1aea the minimap stayed in all 5 pictures with the HUD hidden; with this change it was hidden in all 5, paused or not, and came back with the hearts when the last hide was released.
Member

Possibly related, for context:

  • PR #711 feat(input): a minimap toggle button, with the choice kept — Overlapping minimap visibility control
Possibly related, for context: - PR #711 feat(input): a minimap toggle button, with the choice kept — Overlapping minimap visibility control
Author
Member

The same spot in the Market, with a mod holding hideGameHud() and the game paused (step 2 of the test mod's run).

Before: main @ f577a1aea. The hearts are hidden, and the minimap stays in the bottom-right corner.

Before: main, the minimap still on screen

After: this PR. The hearts and the minimap are both hidden.

After: this PR, the minimap hidden

The same spot in the Market, with a mod holding `hideGameHud()` and the game paused (step 2 of the test mod's run). Before: main @ f577a1aea. The hearts are hidden, and the minimap stays in the bottom-right corner. ![Before: main, the minimap still on screen](https://git.magicbean.dev/attachments/269b2814-8fa1-4a18-9fc2-d0af6e14c43e) After: this PR. The hearts and the minimap are both hidden. ![After: this PR, the minimap hidden](https://git.magicbean.dev/attachments/e56d7919-ae56-4d44-8307-74d29d36a319)
Author
Member

The game runs were on main f577a1aea. The rebase onto ca830e895 added three commits: controller support (#3044) and two test fixes (#3121, #3146). None of them touch the HUD screens' update, the widescreen mod or the pause code this change uses, so the before and after pictures still hold. After the rebase, the new test and the game-core and widescreen tests pass again (Windows), and so do the 9 checks those two test fixes repaired.

The game runs were on main f577a1aea. The rebase onto ca830e895 added three commits: controller support (#3044) and two test fixes (#3121, #3146). None of them touch the HUD screens' update, the widescreen mod or the pause code this change uses, so the before and after pictures still hold. After the rebase, the new test and the game-core and widescreen tests pass again (Windows), and so do the 9 checks those two test fixes repaired.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The reported Market run shows that the minimap now hides and returns after the last release. The remaining in-game map and dungeon cases, and the pending CI checks, need results before merge. Recommend approval; not approved on the forge.

A mod holding hideGameHud() also hides the minimap by temporarily collapsing its projection during the HUD update, including when the widescreen system mod is off. The pause map is intended to remain visible; the change adds one atomic read per HUD screen update and reuses the existing HUD-toggle mechanism.

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)

  • L1 game/mods/widescreen/src/screen.rs:132: The remaining map modes need an in-game check before merge. (more on the line) Do: On one supported PC, test a populated pause Map page, a dungeon minimap and key count, and the Market with the widescreen mod disabled while a mod holds and releases hideGameHud().

Checks: Still running: 11 checks.

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

Does it help: Yes. The author's Windows Market comparison reports the minimap visible in 5 of 5 hidden-HUD pictures on main and 0 of 5 with the change; it returned after the last release. The comparison used an earlier main, and the author explains why the intervening commits do not affect this path.

Other systems: The wrapper runs on a game worker thread and is used with the widescreen mod both on and off. The change also reaches the shared pause-map screen, but checks its minimap flag before collapsing the projection. The fake test covers both modes and restoration; an in-game pause map with actual map content, dungeon key count, and the mod-off path remain untested. The logic is not GPU-specific.

Switches: None added, changed, or removed.

Reviewed: ccff246795 against ca830e8959: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the complete diff and commit messages, screen.rs, pause.rs, the changed documentation, and the wrapper, projection helpers, layouts, site declaration, and relevant test support. Skimmed other widescreen modules and the reported runs. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The new test exercises the minimap, pause-map flag, restoration, release, and both widescreen-mod states; removing the new collapse condition would fail it.
  • The cross-thread HUD state is atomic, and the projection is restored by the wrapper after the update.
  • Both commits include AI-assistance trailers; the diff contains no game-derived output, generated files, API version changes, or new switches.

Testing: No code or tests were run for this review. The author reports Windows game and game-free test results; CI is still running.

Overlaps and merge order: Not checked; network access is closed.


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

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The reported Market run shows that the minimap now hides and returns after the last release. The remaining in-game map and dungeon cases, and the pending CI checks, need results before merge. Recommend approval; not approved on the forge. A mod holding hideGameHud() also hides the minimap by temporarily collapsing its projection during the HUD update, including when the widescreen system mod is off. The pause map is intended to remain visible; the change adds one atomic read per HUD screen update and reuses the existing HUD-toggle mechanism. **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) - **L1** `game/mods/widescreen/src/screen.rs:132`: The remaining map modes need an in-game check before merge. (more on the line) **Do:** On one supported PC, test a populated pause Map page, a dungeon minimap and key count, and the Market with the widescreen mod disabled while a mod holds and releases hideGameHud(). **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The author's Windows Market comparison reports the minimap visible in 5 of 5 hidden-HUD pictures on main and 0 of 5 with the change; it returned after the last release. The comparison used an earlier main, and the author explains why the intervening commits do not affect this path. **Other systems:** The wrapper runs on a game worker thread and is used with the widescreen mod both on and off. The change also reaches the shared pause-map screen, but checks its minimap flag before collapsing the projection. The fake test covers both modes and restoration; an in-game pause map with actual map content, dungeon key count, and the mod-off path remain untested. The logic is not GPU-specific. **Switches:** None added, changed, or removed. **Reviewed:** ccff2467950f against ca830e895926: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the complete diff and commit messages, screen.rs, pause.rs, the changed documentation, and the wrapper, projection helpers, layouts, site declaration, and relevant test support. Skimmed other widescreen modules and the reported runs. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The new test exercises the minimap, pause-map flag, restoration, release, and both widescreen-mod states; removing the new collapse condition would fail it. - The cross-thread HUD state is atomic, and the projection is restored by the wrapper after the update. - Both commits include AI-assistance trailers; the diff contains no game-derived output, generated files, API version changes, or new switches. **Testing:** No code or tests were run for this review. The author reports Windows game and game-free test results; CI is still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -122,3 +130,3 @@
SCOPE.with(|c| c.set(Scope { map: mode, minimap }));
u.previous = Some(previous);
if mini && hidden {
if mini && (hidden || by_a_mod) {
Member

L1 (should fix): The remaining map modes need an in-game check before merge.

When: The reported run used a pause Map page that displayed no map, and did not exercise a dungeon or the widescreen mod disabled in game. The fake test supplies the screen flag and projections itself, so it cannot confirm those game states select and draw the expected screen.

Do: On one supported PC, test a populated pause Map page, a dungeon minimap and key count, and the Market with the widescreen mod disabled while a mod holds and releases hideGameHud().

**L1** (should fix): The remaining map modes need an in-game check before merge. *When:* The reported run used a pause Map page that displayed no map, and did not exercise a dungeon or the widescreen mod disabled in game. The fake test supplies the screen flag and projections itself, so it cannot confirm those game states select and draw the expected screen. **Do:** On one supported PC, test a populated pause Map page, a dungeon minimap and key count, and the Market with the widescreen mod disabled while a mod holds and releases hideGameHud().
Author
Member

On L1: two of the three cases ran in the game now, the third can't run with the saves we have.

  • The widescreen mod switched off: done. A throwaway profile with system/widescreen off (the log shows it never started), the Market, the same steps. The minimap was hidden in all five pictures, paused or not, and came back with the hearts after the last release.

Widescreen off, a mod holding hideGameHud() and the game paused: the minimap hidden

  • A pause Map page with a map on it: not possible with these saves. The Map page says "Unavailable right now" on main with nothing hidden at all, so it is the save, not this change:

main, nothing hidden: the Map page says Unavailable right now

  • A dungeon minimap and key count: the repository saves are from the start of the game and have no dungeon map, so the Deku Tree shows no minimap even before the hide.

The last two stay in Still to test for someone with a save further on. The description is updated.

On L1: two of the three cases ran in the game now, the third can't run with the saves we have. - **The widescreen mod switched off:** done. A throwaway profile with `system/widescreen` off (the log shows it never started), the Market, the same steps. The minimap was hidden in all five pictures, paused or not, and came back with the hearts after the last release. ![Widescreen off, a mod holding hideGameHud() and the game paused: the minimap hidden](https://git.magicbean.dev/attachments/a075c86f-b4f6-4dc8-b9a4-63cdf8fbeb2d) - **A pause Map page with a map on it:** not possible with these saves. The Map page says "Unavailable right now" on main **with nothing hidden at all**, so it is the save, not this change: ![main, nothing hidden: the Map page says Unavailable right now](https://git.magicbean.dev/attachments/d52dac8e-1ea4-4703-b8ea-d3c1f07272b0) - **A dungeon minimap and key count:** the repository saves are from the start of the game and have no dungeon map, so the Deku Tree shows no minimap even before the hide. The last two stay in Still to test for someone with a save further on. The description is updated.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The Market run shows that the minimap now hides and returns, including with widescreen disabled. The pause map and dungeon minimap cases still need in-game checks before merge. Recommend approval; not approved on the forge.

A mod holding hideGameHud() now also hides the minimap by temporarily collapsing its projection; the pause map is intended to remain visible. The change reuses the HUD toggle’s approach and adds a game-free regression test.

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)

  • L1 game/mods/widescreen/src/screen.rs:132: The remaining map modes need an in-game check before merge. When: A save with a populated pause Map page or a dungeon map has not been used to check the hidden HUD and subsequent release. Do: On a save with a populated map, check that the pause Map page remains visible; in a dungeon with its map, check that the minimap and key count hide and return after release.

Since the last review (on ccff246795)
Still open: L1 (The remaining map modes need an in-game check before merge.)

Checks: Still running: 11 checks.

Also noticed (2; not asked for, not blocking)
  • The description also lists a text-box check and a Linux run as still to test.
  • CI is still running.
More: does it help, other systems, switches, what was read

Does it help: Yes: the reported Windows Market run showed the minimap in 5 of 5 hidden pictures on main and 0 of 5 with the change; it returned after the last hide was released. The remaining map modes have not been demonstrated in game.

Other systems: The widescreen-on and widescreen-off paths are covered by the reported Market runs and the game-free test. The pause map and dungeon minimap with its key count remain untested in game; Linux is also listed for testing.

Switches: None.

Reviewed: ccff246795 against ca830e8959: Read the changed code and documentation, the diff, commit list, repository rules available locally, pull request template, and supplied comments and CI status. The review checklist and adjacent Tooling rules were not present locally; screenshot attachments were not inspected.; nothing run (a code review).

Checked and fine:

  • The reported widescreen-disabled run hides the minimap and restores it after the last release.
  • The game-free test covers projection restoration and distinguishes minimap from pause-map mode with widescreen on and off.

Testing: No commands that build or run the project were executed. The author reports Windows game runs and passing game-free tests; the remaining map-mode runs are outstanding.

Overlaps and merge order: Not checked; network access is closed.


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

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The Market run shows that the minimap now hides and returns, including with widescreen disabled. The pause map and dungeon minimap cases still need in-game checks before merge. Recommend approval; not approved on the forge. A mod holding hideGameHud() now also hides the minimap by temporarily collapsing its projection; the pause map is intended to remain visible. The change reuses the HUD toggle’s approach and adds a game-free regression test. **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) - **L1** `game/mods/widescreen/src/screen.rs:132`: The remaining map modes need an in-game check before merge. *When:* A save with a populated pause Map page or a dungeon map has not been used to check the hidden HUD and subsequent release. **Do:** On a save with a populated map, check that the pause Map page remains visible; in a dungeon with its map, check that the minimap and key count hide and return after release. **Since the last review** (on ccff2467950f) Still open: L1 (The remaining map modes need an in-game check before merge.) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The description also lists a text-box check and a Linux run as still to test. - CI is still running. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the reported Windows Market run showed the minimap in 5 of 5 hidden pictures on main and 0 of 5 with the change; it returned after the last hide was released. The remaining map modes have not been demonstrated in game. **Other systems:** The widescreen-on and widescreen-off paths are covered by the reported Market runs and the game-free test. The pause map and dungeon minimap with its key count remain untested in game; Linux is also listed for testing. **Switches:** None. **Reviewed:** ccff2467950f against ca830e895926: Read the changed code and documentation, the diff, commit list, repository rules available locally, pull request template, and supplied comments and CI status. The review checklist and adjacent Tooling rules were not present locally; screenshot attachments were not inspected.; nothing run (a code review). **Checked and fine:** - The reported widescreen-disabled run hides the minimap and restores it after the last release. - The game-free test covers projection restoration and distinguishes minimap from pause-map mode with widescreen on and off. **Testing:** No commands that build or run the project were executed. The author reports Windows game runs and passing game-free tests; the remaining map-mode runs are outstanding. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Author
Member

On L1, the last two cases, with a copy of a save further on (adult Link, on this PR's build):

  • A dungeon minimap: Dodongo's Cavern, whose map that save has. Before the hide the minimap and its floor label show; while the mod holds the hide both are gone with the hearts:

Dodongo's Cavern: shown, then hidden

  • A pause Map page with a map on it: opened with Minus while the hide was held, it draws the full map. After the release the minimap is back:

Dodongo's Cavern: the Map page during the hide, then the release

  • The same in Kakariko Village (the minimap hidden, then the Map page during the hide):

Kakariko: hidden, then the Map page

Not seen: the small-key count beside the minimap. It was not on screen in either place before the hide (no small keys held there), so it stays in Still to test. The description is updated.

On L1, the last two cases, with a copy of a save further on (adult Link, on this PR's build): - **A dungeon minimap:** Dodongo's Cavern, whose map that save has. Before the hide the minimap and its floor label show; while the mod holds the hide both are gone with the hearts: ![Dodongo's Cavern: shown, then hidden](https://git.magicbean.dev/attachments/5f0a4db0-7bc3-4113-8264-3d6b6309f54c) - **A pause Map page with a map on it:** opened with Minus while the hide was held, it draws the full map. After the release the minimap is back: ![Dodongo's Cavern: the Map page during the hide, then the release](https://git.magicbean.dev/attachments/595c6a77-8d67-4fff-a0ee-dae0bf9bd4d2) - The same in Kakariko Village (the minimap hidden, then the Map page during the hide): ![Kakariko: hidden, then the Map page](https://git.magicbean.dev/attachments/3a415552-303d-412b-80b1-e3c5b260672d) Not seen: the small-key count beside the minimap. It was not on screen in either place before the hide (no small keys held there), so it stays in Still to test. The description is updated.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The reported runs show the minimap hiding and returning correctly, including with widescreen disabled and with the pause map open. The small-key count remains untested, and CI is still running. Recommend approval; not approved on the forge.

The change hides the minimap while a mod holds hideGameHud(), restores it on release, and leaves the pause map visible. It reuses the existing HUD projection collapse, at the cost of an atomic read during HUD screen updates.

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)

  • L1 game/mods/widescreen/src/screen.rs:132: Check the dungeon small-key count while the HUD is hidden. When: With small keys held in a dungeon, the reported runs did not show whether the count disappears with the minimap and returns after release. Do: Run a mod calling hideGameHud() in a dungeon with small keys held; check the count before the hide, during it and after release.

Since the last review (on ccff246795)
Still open: L1 (Check the dungeon small-key count while the HUD is hidden.)

Checks: Still running: 11 checks.

Also noticed (3; not asked for, not blocking)
  • The description also lists a text-box check and a Linux run as still to test.
  • CI is still running.
  • The description also lists Linux and text-box checks as still to test.
More: does it help, other systems, switches, what was read

Does it help: Yes: on Windows in the Market, the minimap appeared in 5 of 5 hidden-HUD pictures on main and 0 of 5 with the change; it returned after release. Dungeon and widescreen-disabled runs also reported the intended behavior.

Other systems: The reported Windows runs cover widescreen on and off, a dungeon minimap and the pause map. Linux, the small-key count and text boxes remain untested; CI is still running.

Switches: None.

Reviewed: ccff246795 against ca830e8959: Read the diff, screen.rs, the changed HUD state and call references in pause.rs, the camera documentation, repository contribution rules and PR template. Skimmed surrounding callers and test evidence; the linked Tooling rules were unavailable, and docs/review-checklist.md does not exist.; nothing run (a code review).

Checked and fine:

  • Both widescreen branches collapse only minimap projections for a mod hide, and the end hook restores saved values.
  • The reported pause-map and widescreen-disabled runs passed.

Testing: No commands that execute project code were run. The author reports Windows game runs and game-free tests; CI remains in progress.

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


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

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The reported runs show the minimap hiding and returning correctly, including with widescreen disabled and with the pause map open. The small-key count remains untested, and CI is still running. Recommend approval; not approved on the forge. The change hides the minimap while a mod holds hideGameHud(), restores it on release, and leaves the pause map visible. It reuses the existing HUD projection collapse, at the cost of an atomic read during HUD screen updates. **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) - **L1** `game/mods/widescreen/src/screen.rs:132`: Check the dungeon small-key count while the HUD is hidden. *When:* With small keys held in a dungeon, the reported runs did not show whether the count disappears with the minimap and returns after release. **Do:** Run a mod calling hideGameHud() in a dungeon with small keys held; check the count before the hide, during it and after release. **Since the last review** (on ccff2467950f) Still open: L1 (Check the dungeon small-key count while the HUD is hidden.) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (3; not asked for, not blocking)</summary> - The description also lists a text-box check and a Linux run as still to test. - CI is still running. - The description also lists Linux and text-box checks as still to test. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: on Windows in the Market, the minimap appeared in 5 of 5 hidden-HUD pictures on main and 0 of 5 with the change; it returned after release. Dungeon and widescreen-disabled runs also reported the intended behavior. **Other systems:** The reported Windows runs cover widescreen on and off, a dungeon minimap and the pause map. Linux, the small-key count and text boxes remain untested; CI is still running. **Switches:** None. **Reviewed:** ccff2467950f against ca830e895926: Read the diff, screen.rs, the changed HUD state and call references in pause.rs, the camera documentation, repository contribution rules and PR template. Skimmed surrounding callers and test evidence; the linked Tooling rules were unavailable, and docs/review-checklist.md does not exist.; nothing run (a code review). **Checked and fine:** - Both widescreen branches collapse only minimap projections for a mod hide, and the end hook restores saved values. - The reported pause-map and widescreen-disabled runs passed. **Testing:** No commands that execute project code were run. The author reports Windows game runs and game-free tests; CI remains in progress. **Overlaps and merge order:** None found in the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/hide-game-hud-minimap 2026-12-04 06:40:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!3154
No description provided.