[pr-feature] F1 menu new look: tabs, side help, sliders and switches, three languages, both looks selectable, see-through panel #154

Open
Magnificus wants to merge 1 commit from Magnificus/Darner:pr-panel-f1 into main
First-time contributor

What it changes

The F1 menu gets a second, full-screen look next to the classic box from #91. Both stay: the
MENU STYLE row picks one or the other (DARNER_MENU_STYLE=classic for the box).

  • Seven tabs: Display, Graphics, Frame generation, HUD and stats, Controls, Tools, Advanced,
    each split into sections. Q / E (LB / RB, L1 / R1 on a PlayStation pad) turn the tabs; the tab
    strip slides and fades out what does not fit.
  • Help on the right for the picked row: what it does, its options with the one set marked,
    and whether it applies at once or at the next start.
  • Controls drawn per kind: switches for on/off rows, sliders for ranges, < value 1 / N >
    for choices. Held keys and pad buttons repeat, faster the longer they are held.
  • Reset: Space / X puts the picked setting back to its default; holding F / Y fills a ring
    and then asks to reset the whole tab.
  • Three languages: one LANGUAGE row with English, Spanish and Chinese, or the system's (Spanish too when Windows is in Spanish).
    The new look changes at once. In Chinese it uses the translations already in locales/zh-CN.json
    for the rows and help; Darner's other texts follow at the next start (Spanish has no catalog of
    its own, so they stay in English).
  • Both looks, picked in F1: a MENU STYLE row (Display tab, MENU section, and on the Display
    page of the classic box) switches between this new look and the classic box from #91 at once,
    so everyone can use the one they like. The classic box is still the fallback and shows
    AUTO-DETECT's list of changes.
  • Fix, language detection: with LANGUAGE on the system's, a Windows set to a language with no
    catalog (Spanish) showed the menu in English. The system's language is now read from Windows
    itself (GetUserPreferredUILanguages), so a Spanish Windows gets the menu in Spanish.
  • See-through panel: the menu's background can be made see-through from 0 % (solid) to
    100 %, so the game stays visible behind it while settings are changed.
  • Text size: small (the default), medium, large or very large.
  • Applied at once where it is safe: borderless fullscreen (Alt+Enter keeps the picture's
    shape with black bars), FPS cap when lowered, and the rows already marked live.
  • Saves: export and import show the full path of the zip; Q / E and LB / RB also leave the
    save list and the bindings.
  • Every row is in a tab, including the newest: interface language, preload threads, texture LOD
    bias, HUD bottom corners and AUTO-DETECT: RUN AGAIN.
  • Values and help come from the message keys (locales/*.json), so the classic box and the new
    look show the same words.

Graphics tab:

graphics

A confirmation:

confirm

HUD and stats tab with pad prompts, menu in Spanish:

pad prompts in Spanish

How it was tested

  • Tested revision: 9513465 on top of 57dea7f.
  • Commands and results:
    • cargo test -p darner-gpu --lib menu: 61 passed. Two of them check that every setting is in
      exactly one tab and has a name and help in both languages.
    • cargo test -p darner-hle --lib menu_pad: 13 passed.
    • cargo build --release -p darner: builds.
    • In-game self test (DARNER_MENU_SELFTEST): it opens F1, goes through every tab, changes rows
      by key and by click, reopens the menu and resizes the window to 1280x720, 1600x900 and
      2560x1440. 35 passed, 0 failed.
  • Gameplay: RTX 5070 Ti Laptop, 2560x1440.
  • The pictures come from look_pictures (DARNER_MENU_SHOT=<folder> cargo test -p darner-gpu --lib look_pictures -- --ignored), which draws the menu on its own background.
  • Coverage gaps: not tried on AMD or Intel cards, nor with the zh-CN interface language.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #91 (the classic box's redesign, merged; it is kept, and MENU STYLE switches between the two).

AI assistance [Claude Code]

## What it changes The F1 menu gets a second, full-screen look next to the classic box from #91. Both stay: the MENU STYLE row picks one or the other (`DARNER_MENU_STYLE=classic` for the box). - **Seven tabs**: Display, Graphics, Frame generation, HUD and stats, Controls, Tools, Advanced, each split into sections. Q / E (LB / RB, L1 / R1 on a PlayStation pad) turn the tabs; the tab strip slides and fades out what does not fit. - **Help on the right** for the picked row: what it does, its options with the one set marked, and whether it applies at once or at the next start. - **Controls drawn per kind**: switches for on/off rows, sliders for ranges, `< value 1 / N >` for choices. Held keys and pad buttons repeat, faster the longer they are held. - **Reset**: Space / X puts the picked setting back to its default; holding F / Y fills a ring and then asks to reset the whole tab. - **Three languages**: one LANGUAGE row with English, Spanish and Chinese, or the system's (Spanish too when Windows is in Spanish). The new look changes at once. In Chinese it uses the translations already in `locales/zh-CN.json` for the rows and help; Darner's other texts follow at the next start (Spanish has no catalog of its own, so they stay in English). - **Both looks, picked in F1**: a MENU STYLE row (Display tab, MENU section, and on the Display page of the classic box) switches between this new look and the classic box from #91 at once, so everyone can use the one they like. The classic box is still the fallback and shows AUTO-DETECT's list of changes. - **Fix, language detection**: with LANGUAGE on the system's, a Windows set to a language with no catalog (Spanish) showed the menu in English. The system's language is now read from Windows itself (`GetUserPreferredUILanguages`), so a Spanish Windows gets the menu in Spanish. - **See-through panel**: the menu's background can be made see-through from 0 % (solid) to 100 %, so the game stays visible behind it while settings are changed. - **Text size**: small (the default), medium, large or very large. - **Applied at once** where it is safe: borderless fullscreen (Alt+Enter keeps the picture's shape with black bars), FPS cap when lowered, and the rows already marked live. - **Saves**: export and import show the full path of the zip; Q / E and LB / RB also leave the save list and the bindings. - Every row is in a tab, including the newest: interface language, preload threads, texture LOD bias, HUD bottom corners and AUTO-DETECT: RUN AGAIN. - Values and help come from the message keys (`locales/*.json`), so the classic box and the new look show the same words. Graphics tab: ![graphics](https://git.gtahub.st/attachments/73503277-f542-41ec-9830-4830dde120a0) A confirmation: ![confirm](https://git.gtahub.st/attachments/e47199e6-1366-44ad-9f1c-a1f3c95f0fa3) HUD and stats tab with pad prompts, menu in Spanish: ![pad prompts in Spanish](https://git.gtahub.st/attachments/17f4e05c-38b3-4a2c-95d7-34a4f888c26b) ## How it was tested - Tested revision: 9513465 on top of 57dea7f. - Commands and results: - `cargo test -p darner-gpu --lib menu`: 61 passed. Two of them check that every setting is in exactly one tab and has a name and help in both languages. - `cargo test -p darner-hle --lib menu_pad`: 13 passed. - `cargo build --release -p darner`: builds. - In-game self test (`DARNER_MENU_SELFTEST`): it opens F1, goes through every tab, changes rows by key and by click, reopens the menu and resizes the window to 1280x720, 1600x900 and 2560x1440. 35 passed, 0 failed. - Gameplay: RTX 5070 Ti Laptop, 2560x1440. - The pictures come from `look_pictures` (`DARNER_MENU_SHOT=<folder> cargo test -p darner-gpu --lib look_pictures -- --ignored`), which draws the menu on its own background. - Coverage gaps: not tried on AMD or Intel cards, nor with the zh-CN interface language. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #91 (the classic box's redesign, merged; it is kept, and MENU STYLE switches between the two). AI assistance [Claude Code]
The F1 menu gets a full-screen look with seven tabs split into sections, help for the picked
row on the right, switches, sliders and choices drawn per kind, held-key repeat, reset of a
setting (Space / X) or a whole tab (hold F / Y), menu language, interface text size and menu
see-through. Borderless fullscreen and a lowered FPS cap apply at once. The classic box stays
with DARNER_MENU_STYLE=classic and is used as a fallback. Includes an in-game self test
(DARNER_MENU_SELFTEST) and offscreen pictures (look_pictures).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor

I think you didnt check for similar PR, i have one already aproved.

I think you didnt check for similar PR, i have one already aproved.
Magnificus changed title from [pr-feature] F1 menu new look: tabs, side help, sliders and switches, more than one language, see-through panel to [pr-feature] F1 menu new look: tabs, side help, sliders and switches, three languages, both looks selectable, see-through panel 2026-12-04 00:56:42 +00:00
Author
First-time contributor

Hi, thanks for the note. Yes, we're aware of your panel from #91, and it is kept: it was already in main when I opened this, and it stays fully working for anyone who prefers that style.

I've just added a MENU STYLE row to F1 (Display tab, and on the Display page of your box too) that switches between your classic box and this new look at once, so each person can use the one they like. Your box is also still the fallback and shows the AUTO-DETECT list.

Hi, thanks for the note. Yes, we're aware of your panel from #91, and it is kept: it was already in `main` when I opened this, and it stays fully working for anyone who prefers that style. I've just added a **MENU STYLE** row to F1 (Display tab, and on the Display page of your box too) that switches between your classic box and this new look at once, so each person can use the one they like. Your box is also still the fallback and shows the AUTO-DETECT list.
This pull request has changes conflicting with the target branch.
  • crates/darner-gpu/src/host/menu.rs
  • crates/darner-hle/src/modules/lifecycle.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'pr-panel-f1:Magnificus-pr-panel-f1'
git switch 'Magnificus-pr-panel-f1'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'Magnificus-pr-panel-f1'
git switch 'Magnificus-pr-panel-f1'
git rebase 'main'
git switch 'main'
git merge --ff-only 'Magnificus-pr-panel-f1'
git switch 'Magnificus-pr-panel-f1'
git rebase 'main'
git switch 'main'
git merge --no-ff 'Magnificus-pr-panel-f1'
git switch 'main'
git merge --squash 'Magnificus-pr-panel-f1'
git switch 'main'
git merge --ff-only 'Magnificus-pr-panel-f1'
git switch 'main'
git merge 'Magnificus-pr-panel-f1'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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
TrustNo1/Darner!154
No description provided.