mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 14:48:37 +00:00
A new crate with no platform in its core: pages of items (submenus, toggles, numbers, choices, actions) with a cursor and back stack that wrap round and scroll; keys and pad buttons to presses with repeat and debounce, and which keys are kept from the title while it is open; the run-time settings the rest of the runtime reads (sharpen strength, frame-rate cap, FPS panel and frame recorder switches, screenshots, the title's clock rate); Leonida's pages grouped as single-player trainers group them (Player, Vehicle, Weapons, World, Time, Weather, Teleport, Misc, Settings); script features behind a GameActions backend that says why they are not available yet. The menu is painted on the CPU in the classic trainer layout, in two layers (unselected and selected rows) so the highlight can slide on the card; glyphs come from the system's fonts through GDI at run time (Segoe Script, Segoe UI), the built-in dot font elsewhere. Its own thread polls F4 / RB+Left and paints only on change. LEONIDA_MENU=0 turns it off. 30 unit tests, no GPU needed. Cherry-picked from 996fbd522 (leonida/mod-menu, written againstdb723a4c4) onto the main line after the upstream renderer merge (00698e1e8). The crate is as it was; Cargo.lock names it for the workspace only, since leonida-gpu and leonida-hle take it in the commits that follow. The settings are fitted to the merged renderer in the next commit. Checked: cargo test -j 4 -p leonida-menu (30 passed). AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>