F1 menu redesign: tabs, smooth text, toggles and a purple look #319

Open
github-bot wants to merge 1 commit from github-bot/gh-319 into main AGit
Owner

@⁠starrockanonigtavi-collab on GitHub · 2026-11-27 20:58 UTC · original
starrockanonigtavi-collab:f1-menu-look → main · +716 −26 · 2 files · 1 commits · open

What

The F1 menu gets a new look, modelled on the title's own settings screens. The settings, their values and what they do are unchanged; only the picture and the navigation change.

  • Tabs: DISPLAY, GRAPHICS, PERFORMANCE, CONTROLS, ADVANCED. Switch with Q / E (or Tab). Any setting not listed in tab_of goes to ADVANCED.
  • Text: Windows' own Bahnschrift, drawn by GDI with smoothed edges, in mixed case (pretty() keeps names such as DLSS, RTX and 3440x1440). Nothing is shipped: the font is the system's. GDI falls back to a default face where Bahnschrift is missing (older than Windows 10 1709).
  • Rows:
    • On/off settings are toggle switches.
    • The others read Value n / N < >.
    • Thin white lines separate the rows.
    • The picked row is a white bar that fades out to the right, with dark text.
    • A changed setting gets a *.
    • The list scrolls, with a scroll bar, when a tab has more rows than fit.
  • Description on the right: the setting's name, whether it applies at once or at the next start, and its current value. The MFG Unlocker and Preload notes are shown here too.
  • Actions are buttons at the bottom: Save And Restart, Save, Preload Shaders, Reset, Close.
    • Down from the last row reaches them.
    • Left/Right moves between them.
    • Enter works as before; Preload still asks for a second Enter.
  • The purple gradient background, white text and white rules follow the title's look.

The frame-rate line in the corner keeps its old pixel font and black box.

menu-f1-preview

How

  • New crates/victory-gpu/src/host/menu_look.rs draws the page into a 32-bit DIB section.
    • GDI draws the text.
    • The bars, rules, toggles and buttons are drawn directly into the pixels, with smoothed edges from a signed distance to a rounded rectangle.
  • menu.rs builds the page from the menu's state and converts the pixels to the swap chain's format: R8G8B8A8, B8G8R8A8, R10G10B10A2, or R16G16B16A16_FLOAT as linear halves.
  • The picture is redrawn only when something changes.
  • Scale: 1.0 at 1080 lines, and smaller where the window is narrow (min(h/1080, w/1240), at least 0.5). The upload buffers hold the larger of the menu picture and the frame-rate line.
  • Menu::lines() stays for the existing text tests (#[cfg(test)]).

Tests

  • New test the_picture_has_tabs_rows_and_a_fading_bar. It draws a tab and checks the fading bar, that stepping goes through every tab's rows and onto the actions, and pretty().
  • New test preview: with VICTORY_MENU_PREVIEW=<path>, it writes each tab as a .bmp, so the menu can be looked at without the game.
  • cargo test -p victory-gpu menu passes.
  • Played on an RTX 5080 at 3440x1440 (window and borderless).

🤖 Generated with Claude Code

**@⁠starrockanonigtavi-collab** on GitHub · 2026-11-27 20:58 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/319) `starrockanonigtavi-collab:f1-menu-look` → `main` · +716 −26 · 2 files · 1 commits · open ## What The F1 menu gets a new look, modelled on the title's own settings screens. The settings, their values and what they do are unchanged; only the picture and the navigation change. - **Tabs**: DISPLAY, GRAPHICS, PERFORMANCE, CONTROLS, ADVANCED. Switch with **Q / E** (or **Tab**). Any setting not listed in `tab_of` goes to ADVANCED. - **Text**: Windows' own Bahnschrift, drawn by GDI with smoothed edges, in mixed case (`pretty()` keeps names such as DLSS, RTX and 3440x1440). Nothing is shipped: the font is the system's. GDI falls back to a default face where Bahnschrift is missing (older than Windows 10 1709). - **Rows**: - On/off settings are toggle switches. - The others read `Value n / N < >`. - Thin white lines separate the rows. - The picked row is a white bar that fades out to the right, with dark text. - A changed setting gets a `*`. - The list scrolls, with a scroll bar, when a tab has more rows than fit. - **Description** on the right: the setting's name, whether it applies at once or at the next start, and its current value. The MFG Unlocker and Preload notes are shown here too. - **Actions** are buttons at the bottom: Save And Restart, Save, Preload Shaders, Reset, Close. - Down from the last row reaches them. - Left/Right moves between them. - Enter works as before; Preload still asks for a second Enter. - The purple gradient background, white text and white rules follow the title's look. The frame-rate line in the corner keeps its old pixel font and black box. <img width="1180" height="700" alt="menu-f1-preview" src="https://github.com/user-attachments/assets/a02b7bb0-1c72-4510-b01e-13377cc2c338" /> ## How - New `crates/victory-gpu/src/host/menu_look.rs` draws the page into a 32-bit DIB section. - GDI draws the text. - The bars, rules, toggles and buttons are drawn directly into the pixels, with smoothed edges from a signed distance to a rounded rectangle. - `menu.rs` builds the page from the menu's state and converts the pixels to the swap chain's format: R8G8B8A8, B8G8R8A8, R10G10B10A2, or R16G16B16A16_FLOAT as linear halves. - The picture is redrawn only when something changes. - Scale: 1.0 at 1080 lines, and smaller where the window is narrow (`min(h/1080, w/1240)`, at least 0.5). The upload buffers hold the larger of the menu picture and the frame-rate line. - `Menu::lines()` stays for the existing text tests (`#[cfg(test)]`). ## Tests - New test `the_picture_has_tabs_rows_and_a_fading_bar`. It draws a tab and checks the fading bar, that stepping goes through every tab's rows and onto the actions, and `pretty()`. - New test `preview`: with `VICTORY_MENU_PREVIEW=<path>`, it writes each tab as a .bmp, so the menu can be looked at without the game. - `cargo test -p victory-gpu menu` passes. - Played on an RTX 5080 at 3440x1440 (window and borderless). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:01:18 +00:00
github-bot force-pushed github-bot/gh-319 from acb491bc96 to b629f78e17 2026-11-27 23:58:50 +00:00 Compare
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/menu.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 origin '+refs/pull/319/head:github-bot/gh-319'
git switch 'github-bot/gh-319'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-319'
git switch 'github-bot/gh-319'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-319'
git switch 'github-bot/gh-319'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-319'
git switch 'main'
git merge --squash 'github-bot/gh-319'
git switch 'main'
git merge --ff-only 'github-bot/gh-319'
git switch 'main'
git merge 'github-bot/gh-319'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.