PlayStation glyphs: --mono, a look close to the PS5's prompts; the DualSense d-pad; no black halo (PS-GLYPHS-MONO-DUALSENSE) #2666
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2666
Loading…
Reference in a new issue
No description provided.
Delete branch "ps-glyphs-dualsense"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: PS-GLYPHS-MONO-DUALSENSE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7265398247)
What and why
tools/ps_prompt_glyphs.pydraws PlayStation button prompts in its own colours: dark discs, a light rim and coloured symbols. This PR adds a--monooption that draws them in a look very similar to the PS5's own prompts:0,0,0,0) showed as a black halo around the prompt. The drawings already span the glyphs' bounds, so their size is unchanged.The default look (without
--mono) is unchanged: same shapes, same box.The drawings are still original, made from the tool's own primitives. Nothing is traced from the game or from Sony's art.
Tested
python -I tests/test_ps_prompt_glyphs.py: 10 passed. Three of them are new:python -I tests/test_pc_prompt_glyphs.py: 13 passed (it imports this module).--selftestpasses with and without--mono.scripts/check_no_game_data.pyon the three files: clean.--mono --from-archive <data.rpf>and served it asps_prompt_glyphs.gfx. The log showsprompt glyphs: PlayStation movie loadedandthe title reads its glyph movie family="PlayStation". The HUD prompts (cross, circle, triangle, square, R1) show white keys with black symbols, and highlighted options show no halo. Not every menu was visited.GPUs tested: NVIDIA RTX 4070 12 GB, driver 621.40, Windows 11 (in-game check only; the tests need no GPU)
AI-assisted: yes (Claude)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16 (pytest), main b8bd37111, PR head 4ae05e76c. MEASURED:
tests/test_ps_prompt_glyphs.py): 3 failed / 10 (MonoLook::test_no_see_through_box_behind_a_glyph,test_the_dpad_is_four_keys_the_pressed_ones_white,test_the_mono_movie_builds; main's tool has noMONO).merge --no-ff): 10/10 passed.git merge-tree). The diff adds drawing code and a doc paragraph only; I found no embedded image data.Not covered: how
--monolooks in the title (needs a Windows run withLEONIDA_PROMPTS=playstation).AI-assisted: Claude Code
Verified on
mainb8bd37111(Windows, Python 3.13): it applies cleanly, its tests pass, and the flag does what the title says at the CLI level.Two things I like about this one, and one thing I would check before merging:
--monoproduces a different atlas (13,095 bytes against 13,551) rather than changing the default, so nothing that already works moves;Worth a look from the person who owns the glyph tooling:
tests/now has three prompt-glyph suites (test_pc_,test_ps_,test_xbox_prompt_glyphs.py). If--monoreproduces the Xbox look, the interesting question is whether the three should share the palette/look code instead of each carrying a copy - this PR is the right size on its own, but it is the second time the same shape appears.Not tested: the atlas against a real console or the title; only the CLI's own selftest and the unit tests, no game data.
Written with an AI assistant.
Independent verification on this machine (Windows 11, Python 3.13.14), and the negative control bites.
It is not a docs change, despite where it started: it touches
tools/ps_prompt_glyphs.py(+51/-1) and addstests/test_ps_prompt_glyphs.py(+43).1. It applies.
merge-treeclean;4ae05e76ccherry-picks ontomain1d22590b9without a conflict.2. Its test passes:
3. The negative control fails on
main's tool, which is what makes that number mean something. With the PR's test andtools/ps_prompt_glyphs.pyreverted tomain:So the three properties the commit adds - no see-through box behind a glyph, a D-pad of four keys with the pressed one white, and the
--monomovie building - are all absent onmainand present with the change. That is a real red->green, not a test that agrees with itself.What I did not test: the rendered output by eye (this is a text/ANSI tool, and the assertions check the frame content rather than what a terminal shows), and the PS5 visual resemblance, which is a judgement call for whoever asked for the look.
Written with an AI assistant.
Merging. Head
4ae05e76chas red/green verdicts from reviewers other than the author (above), merges cleanly withmain5a7c02bd0, does not force a rebase of #2566, and carries a claim ID. The only red CI job,semantic-tests(test_interp_computed_ij_fallback, fixed by #2566), is also red onmain. Neighbour tests rerun by me onmain+ PR (Windows 11): all pass. Merged by MoonEyes.AI-assisted (Claude Code).