feat(prompts): hand-drawn Steam Deck picture and guide lines for the System page #2254

Merged
HumanBean merged 1 commit from madebyjordan/Longshot:feat/steamdeck-controller-graphic into main 2026-11-22 18:49:03 +00:00
Member

Summary

Follow-up to #1589: replaces the procedurally generated Steam Deck picture on the pause menu's System page (Basic Controls) with Jordan's hand-drawn Steam Deck graphic and matching leader lines, so the Steam Deck face matches the game's Pro Controller and the DualSense / Xbox One pictures.

What was wrong on main:

  • With Button prompts = Steam Deck (button_prompts=5), the System page drew a generic generated rectangle (nx2/prompt_draw.py) with circular dots for the STEAM / ... buttons (and a house icon), awkward top routing for Rotate Camera crossing Actions and Open Menu, and the game's fixed Switch Pro Controller lines for ControllerGuide_Pro_02..04 (R2, d-pad frame/line, L1/R1).

What this changes:

All other faces (switch, xbox, ps4, ps5, keyboard), steamdeck/hint.bin, ring.bin, Common.bntx, and Common.blarc are byte-identical to main.

Read first: nx2/prompt_faces.py (_STEAMDECK), then nx2/prompt_faces/steamdeck/ and tests/test_prompt_hand_guides.py.

See #1589, See #1211

Testing

Tested: Windows 11, AMD Radeon RX 6700 XT (1002:73df), AMD driver 26.10.1 (0x800161), headless in-game on castle-gate (HyruleField_Child, 1920x1080, button_prompts=5 Steam Deck) via scripts/longshot_ctl.py (comparing main @ a2dc5385 prompts vs this PR @ c818e4ff prompts built from the same RomFS): System page (Basic Controls) renders the hand-drawn Steam Deck with the game's warm tint, crisp outlines, trackpads, thumbstick rings, and every leader line (Target L2, Open Map, Move, Open Menu, Actions, Rotate Camera) landing cleanly on its control (before/after screenshots attached in the first comment).

  • Prompt build byte-for-byte comparison against main @ a2dc5385: switch, xbox, ps4, ps5, keyboard, steamdeck/hint.bin, ring.bin, Common.bntx, and Common.blarc are byte-identical; only steamdeck/textures.bin changes (3967632 → 4325784 bytes).
  • Game-free prompt tests on c818e4ff (toolchains/v3.0.0-tools/python): test_prompt_hand_guides.py (confirmed failing on main @ a2dc5385, passing here), test_prompt_guide_lines.py, test_prompt_picture_tint.py, test_prompt_font_bind.py, test_prompt_skip.py, test_prompt_speed.py, test_prompt_auto_face.py, test_prompts_live.py, and test_appimage_prompt_fonts.py all pass.

Still to test:

  • Linux / Steam Deck in-game check: build prompts on Linux and open the pause menu's System page with Button prompts = Steam Deck, expecting the hand-drawn Steam Deck and aligned lines matching the Windows screenshot (including R2, L1/R1, and d-pad lines on a save with those actions unlocked) (Test Farm: @Beanstalk steamdeck, open the pause menu System page with Button prompts = Steam Deck, or by hand).

Measurements

Nothing to measure: build-time prompt textures only (steamdeck/textures.bin: 3967632 → 4325784 bytes), with zero runtime performance change and all other faces byte-identical to main.

Risks

Low: affects only the Steam Deck controller picture and leader lines on the pause menu's System page (nx2/prompt_faces/steamdeck/ and _STEAMDECK in nx2/prompt_faces.py). A revert restores the generated Steam Deck picture cleanly. Nothing changes in saves, longshot_options.ini, shader caches, or other controller faces; builds regenerate prompts/ automatically via the prompt stamp.

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 check under tests/ that reads changed source is updated, not weakened.
  • 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.
## Summary Follow-up to #1589: replaces the procedurally generated Steam Deck picture on the pause menu's System page (`Basic Controls`) with Jordan's hand-drawn Steam Deck graphic and matching leader lines, so the Steam Deck face matches the game's Pro Controller and the DualSense / Xbox One pictures. **What was wrong on `main`:** - With `Button prompts = Steam Deck` (`button_prompts=5`), the System page drew a generic generated rectangle (`nx2/prompt_draw.py`) with circular dots for the STEAM / `...` buttons (and a house icon), awkward top routing for `Rotate Camera` crossing `Actions` and `Open Menu`, and the game's fixed Switch Pro Controller lines for `ControllerGuide_Pro_02..04` (`R2`, d-pad frame/line, `L1`/`R1`). **What this changes:** - Adds [`nx2/prompt_faces/steamdeck/Controller_Pro.png`](nx2/prompt_faces/steamdeck/Controller_Pro.png) (`1160x680` RGBA in the game's greys `#333333` / `#646464` / `#000000` / `#cfcfcf`, so `picture_layers` in `nx2/prompt_assets.py` tints it to match the game's Pro Controller and builds its shadow automatically). - Adds hand-given [`nx2/prompt_faces/steamdeck/ControllerGuide_Pro_02.png`](nx2/prompt_faces/steamdeck/ControllerGuide_Pro_02.png) (`R2`, row 333), [`03.png`](nx2/prompt_faces/steamdeck/ControllerGuide_Pro_03.png) (d-pad frame and line, row 1016), and [`04.png`](nx2/prompt_faces/steamdeck/ControllerGuide_Pro_04.png) (`L1`/`R1`, row 446), generated with `prompt_assets.py`'s `guide_line` and `guide_frame` against `_STEAMDECK`. - Adds `_STEAMDECK` parts in [`nx2/prompt_faces.py`](nx2/prompt_faces.py) with exact control positions and exclusion boxes (screen, trackpads, quick-access `...` button), placing `L2`/`R2` inward of `View`/`Menu` so their leader lines do not cross `View`/`Menu` and `Rotate Camera` routes cleanly under `ABXY`. - Updates [`nx2/prompt_faces/README.md`](nx2/prompt_faces/README.md) and extends [`tests/test_prompt_hand_guides.py`](tests/test_prompt_hand_guides.py) to cover all four hand-drawn faces (`ps4`, `ps5`, `xbox`, `steamdeck`; fails on `main`, passes here). All other faces (`switch`, `xbox`, `ps4`, `ps5`, `keyboard`), `steamdeck/hint.bin`, `ring.bin`, `Common.bntx`, and `Common.blarc` are byte-identical to `main`. Read first: `nx2/prompt_faces.py` (`_STEAMDECK`), then `nx2/prompt_faces/steamdeck/` and `tests/test_prompt_hand_guides.py`. See #1589, See #1211 ## Testing **Tested:** Windows 11, AMD Radeon RX 6700 XT (`1002:73df`), AMD driver `26.10.1` (`0x800161`), headless in-game on `castle-gate` (`HyruleField_Child`, `1920x1080`, `button_prompts=5` Steam Deck) via `scripts/longshot_ctl.py` (comparing `main @ a2dc5385` prompts vs `this PR @ c818e4ff` prompts built from the same RomFS): System page (`Basic Controls`) renders the hand-drawn Steam Deck with the game's warm tint, crisp outlines, trackpads, thumbstick rings, and every leader line (`Target L2`, `Open Map`, `Move`, `Open Menu`, `Actions`, `Rotate Camera`) landing cleanly on its control (before/after screenshots attached in the first comment). - Prompt build byte-for-byte comparison against `main @ a2dc5385`: `switch`, `xbox`, `ps4`, `ps5`, `keyboard`, `steamdeck/hint.bin`, `ring.bin`, `Common.bntx`, and `Common.blarc` are byte-identical; only `steamdeck/textures.bin` changes (`3967632` → `4325784` bytes). - Game-free prompt tests on `c818e4ff` (`toolchains/v3.0.0-tools/python`): `test_prompt_hand_guides.py` (confirmed failing on `main @ a2dc5385`, passing here), `test_prompt_guide_lines.py`, `test_prompt_picture_tint.py`, `test_prompt_font_bind.py`, `test_prompt_skip.py`, `test_prompt_speed.py`, `test_prompt_auto_face.py`, `test_prompts_live.py`, and `test_appimage_prompt_fonts.py` all pass. **Still to test:** - Linux / Steam Deck in-game check: build prompts on Linux and open the pause menu's System page with `Button prompts = Steam Deck`, expecting the hand-drawn Steam Deck and aligned lines matching the Windows screenshot (including `R2`, `L1`/`R1`, and d-pad lines on a save with those actions unlocked) (Test Farm: `@Beanstalk steamdeck`, open the pause menu System page with Button prompts = Steam Deck, or by hand). ## Measurements Nothing to measure: build-time prompt textures only (`steamdeck/textures.bin`: `3967632` → `4325784` bytes), with zero runtime performance change and all other faces byte-identical to `main`. ## Risks Low: affects only the Steam Deck controller picture and leader lines on the pause menu's System page (`nx2/prompt_faces/steamdeck/` and `_STEAMDECK` in `nx2/prompt_faces.py`). A revert restores the generated Steam Deck picture cleanly. Nothing changes in saves, `longshot_options.ini`, shader caches, or other controller faces; builds regenerate `prompts/` automatically via the prompt stamp. ## 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 check under `tests/` that reads changed source is updated, not weakened. - [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.
feat(prompts): hand-drawn Steam Deck picture and guide lines for the System page
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
PR description / Description follows the template (pull_request_target) Successful in 9s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 10s
CI / Workflow lint (actionlint) (pull_request) Successful in 11s
Third-party parts / As their notes say (pull_request) Successful in 12s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Website build and checks (pull_request) Failing after 37s
c818e4ff0e
Replace the generated Steam Deck picture on the pause menu's System page
with Jordan's hand-drawn Steam Deck graphic (1160x680 RGBA in the game's
greys, so picture_layers tints it identically to the Switch Pro Controller)
and matching leader lines.

- Add nx2/prompt_faces/steamdeck/Controller_Pro.png and hand-given
  ControllerGuide_Pro_02..04.png (R2 at row 333, d-pad frame/line at row
  1016, L1/R1 at row 446), generated with prompt_assets.py's guide_line
  and guide_frame against the new _STEAMDECK parts.
- Define _STEAMDECK in nx2/prompt_faces.py with exact control coordinates
  and exclusion boxes (screen, trackpads, quick-access button), placing
  L2/R2 inward of View/Menu so their leader lines do not cross View/Menu.
- Update nx2/prompt_faces/README.md and extend tests/test_prompt_hand_guides.py
  to check all four hand-drawn faces (ps4, ps5, xbox, steamdeck).

Follow-up to #1589; see #1211.

Assisted-by: Antigravity
Author
Member

Tested in game: Windows 11, AMD Radeon RX 6700 XT (1002:73df), AMD driver 26.10.1 (0x800161), headless castle-gate (HyruleField_Child, 1920x1080, button_prompts=5 Steam Deck): pause menu System page (Basic Controls) renders Jordan's hand-drawn Steam Deck with the game's warm tint and every leader line on its control.

Tested in game: Windows 11, AMD Radeon RX 6700 XT (1002:73df), AMD driver 26.10.1 (0x800161), headless castle-gate (HyruleField_Child, 1920x1080, button_prompts=5 Steam Deck): pause menu System page (Basic Controls) renders Jordan's hand-drawn Steam Deck with the game's warm tint and every leader line on its control.
Member

Possibly related, for context:

  • PR #1700 feat(prompts): the System page's guide follows every controller and binding (#1211) — Open overlapping System-page guide layout work includes Steam Deck
  • issue #758 Idea: Choose Steam Deck button prompts and improve their alignment — Open request for selectable and better-aligned Steam Deck prompts
Possibly related, for context: - PR #1700 feat(prompts): the System page's guide follows every controller and binding (#1211) — Open overlapping System-page guide layout work includes Steam Deck - issue #758 Idea: Choose Steam Deck button prompts and improve their alignment — Open request for selectable and better-aligned Steam Deck prompts
Author
Member

Before/after in-game capture on Windows 11 (RX 6700 XT, 1920x1080, \castle-gate, \utton_prompts=5\ Steam Deck):

Steam Deck System page before and after

All 5 guide layers (\ControllerGuide_Pro_00..04, including \R2, \L1/\R1, and the d-pad frame/line) composited over the tinted Steam Deck picture:

Steam Deck all 5 guide layers preview

Before/after in-game capture on Windows 11 (RX 6700 XT, 1920x1080, \castle-gate\, \utton_prompts=5\ Steam Deck): ![Steam Deck System page before and after](https://git.magicbean.dev/attachments/55ce15c3-c7d3-4427-a481-87818134ea3d) All 5 guide layers (\ControllerGuide_Pro_00..04\, including \R2\, \L1\/\R1\, and the d-pad frame/line) composited over the tinted Steam Deck picture: ![Steam Deck all 5 guide layers preview](https://git.magicbean.dev/attachments/33d22a1f-7be3-481a-81ec-d826a2be74ca)
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The new Steam Deck picture and the basic guide lines were shown working in game. The additional R2, L1/R1 and d-pad guide layers have only a composite preview reported and still need the in-game check listed in the pull request. Recommend approval; not approved on the forge.

The System page gets a hand-drawn Steam Deck picture and guide lines aligned with it. The change keeps the existing prompt-generation design and increases the reported Steam Deck texture file by 358,152 bytes.

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

  • L1 (minor): Complete the listed in-game System page check with R2, L1/R1 and d-pad actions unlocked, and confirm that their lines align with the picture. The reported in-game run names the basic lines; the all-layer image is a composite preview.

Checks: Also failing on the base branch (not this pull request's): Guide screenshots / Guide images and local UI source review (pull_request), CI / Website build and checks (pull_request).

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

Does it help: Yes for the reported basic System page rendering on Windows; the remaining guide layers need an in-game check. This is not a performance change.

Other systems: The change affects the Steam Deck prompt face and its generated textures, including generated lines for alternate bindings. Other faces and prompt files are reported byte-identical. The rendering uses existing texture and tint paths; the reported run is on Windows, while the requested Steam Deck/Linux check remains outstanding.

Switches: None added, changed or removed.

Reviewed: c818e4ff0e against a2dc538590: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the complete changed Python, README and test files, the commit and diff, and the relevant prompt layer and routing code and guide-line test. Viewed all four added PNGs. Skimmed the rest of prompt_assets.py; the linked screenshots could not be inspected from the closed network. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).

Checked and fine:

  • The hand-supplied guide layers preserve the game's label bars through the existing composition path.
  • The prompt stamp includes the face definitions and PNG overrides.
  • The commit records AI assistance; no renderer API or switch table change applies.
  • The added guide images contain lines on black, and the controller picture is supplied separately.

Testing: Read-only review; no code or tests were run. The author reports prompt tests passing and an in-game Windows run.

Overlaps and merge order: None identified from the supplied pull request information; the network was closed.


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

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The new Steam Deck picture and the basic guide lines were shown working in game. The additional R2, L1/R1 and d-pad guide layers have only a composite preview reported and still need the in-game check listed in the pull request. Recommend approval; not approved on the forge. The System page gets a hand-drawn Steam Deck picture and guide lines aligned with it. The change keeps the existing prompt-generation design and increases the reported Steam Deck texture file by 358,152 bytes. **Before merging: testing (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L1** (minor): Complete the listed in-game System page check with R2, L1/R1 and d-pad actions unlocked, and confirm that their lines align with the picture. The reported in-game run names the basic lines; the all-layer image is a composite preview. **Checks:** Also failing on the base branch (not this pull request's): `Guide screenshots / Guide images and local UI source review (pull_request)`, `CI / Website build and checks (pull_request)`. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported basic System page rendering on Windows; the remaining guide layers need an in-game check. This is not a performance change. **Other systems:** The change affects the Steam Deck prompt face and its generated textures, including generated lines for alternate bindings. Other faces and prompt files are reported byte-identical. The rendering uses existing texture and tint paths; the reported run is on Windows, while the requested Steam Deck/Linux check remains outstanding. **Switches:** None added, changed or removed. **Reviewed:** c818e4ff0eef against a2dc53859018: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the complete changed Python, README and test files, the commit and diff, and the relevant prompt layer and routing code and guide-line test. Viewed all four added PNGs. Skimmed the rest of prompt_assets.py; the linked screenshots could not be inspected from the closed network. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review). **Checked and fine:** - The hand-supplied guide layers preserve the game's label bars through the existing composition path. - The prompt stamp includes the face definitions and PNG overrides. - The commit records AI assistance; no renderer API or switch table change applies. - The added guide images contain lines on black, and the controller picture is supplied separately. **Testing:** Read-only review; no code or tests were run. The author reports prompt tests passing and an in-game Windows run. **Overlaps and merge order:** None identified from the supplied pull request information; the network was closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by madebyjordan. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch feat/steamdeck-controller-graphic 2026-11-22 18:49:05 +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!2254
No description provided.