UI: Modernize F1 menu & F3 stats panel (anti-aliased text, Vice City theme, dynamic scaling) #4635

Manually merged
github merged 1 commit from github-bot/gh-4634 into gh-pr/4634/base 2026-12-01 01:30:34 +00:00 AGit
Owner

@⁠ArnoX5 on GitHub · 2026-12-01 00:24 UTC · original
ArnoX5:ui/vice-city-overlay → main · +1165 −2498 · 3 files · 1 commits · merged 2026-12-01 01:28 UTC

###Disclaimer
AI-generated: Gemini was used to generate this new UI theme. Tested for mannny builds now, works perfectly for me all the time. So, thought I'd share it.
AI-generated Description from this point onwards....

Summary

A clean visual and usability overhaul of the in-game overlay UI (font.rs, menu.rs, panel.rs), built directly on the existing main architecture with zero new dependencies and ~1,300 fewer lines of code (+1,165 / -2,498).

What’s New

  • Crisp Anti-Aliased Typography & Multi-Format Packing (font.rs):
    • Replaces the 5x7 dot-matrix font with smooth anti-aliased Windows GDI Segoe UI (headers) and Consolas (aligned rows & metrics) with resolution-scaled drop shadows for readability over bright and dark scenes.
    • Supports all 4 swapchain formats (BGRA8, RGBA8, 10-bit R10G10B10A2, and HDR R16G16B16A16_FLOAT with linear conversion) and keeps the legacy glyph() table intact for upstream helper compatibility.
  • Dynamic Resolution Scaling + Custom Override: Automatically scales the F1 menu, FPS pill, Startup Notice, F2 Performance Advisor, and F3 panel based on render height (1080p / 1440p / 4K, clamped 95%–275%) so the overlay stays proportional without covering too much of the screen. Also supports VICTORY_UI_PCT (e.g. VICTORY_UI_PCT=100, min 50) for manual sizing on large TVs or ultrawides.
  • Smoother Menu Navigation (menu.rs):
    • Hold-to-scroll key repeat: Holding Up/Down/Left/Right repeats smoothly (300ms delay, 60ms interval) instead of requiring repeated taps.
    • Mouse-wheel scrolling: Scroll wheel navigates cleanly across the main settings list, Key Bindings, and Import Save views.
    • Centered viewport & wrap-around: Keeps the active row centered in the 20-row window and wraps seamlessly from bottom to top (and vice versa).
  • Refined Vice City Visual Hierarchy & FPS Pill (menu.rs):
    • Pink-to-cyan gradient top accent bar, subtle bordered card, active-row highlight bar with a pink left indicator, and a matching compact top-left FPS / FG pill when the menu and F3 panel are closed.
    • Color-coded value states (mint for enabled/FG multipliers, cyan for DLSS/resolutions, muted for off, amber for warnings/notes) plus LIVE / * / *LIVE badges, contextual per-item footer descriptions, and double-Enter confirmation on restart/clear/import actions.
  • Auto-Sized Startup Notice & F2 Performance Advisor (panel.rs):
    • Startup Notice (Notice): Dynamically calculates both width and height from its text lines and column count so the banner stays compact with no wasted space or clipped text.
    • F2 Performance Advisor (WHAT LIMITS FPS): Dynamically sizes its height (draw_h) to fit only the active lines, with color-coded severity (LIMIT/ALSO coral, TRY mint, NOTE amber), and yields cleanly while the Startup Notice is active.
  • Slim Vertical Top-Left F3 Stats Panel (panel.rs):
    • Compact vertical layout with dedicated background F3 key polling, live DXR/RT and FG 2X–6X/FSR3 readouts, threshold alerts (VRAM >85%, free RAM <3 GB, dropped draws), and 4 compact 2-minute sparkline graphs (FPS, CPU, RAM, VRAM).
  • 100% Upstream Feature Parity & Drop-In Maintainable: Preserves all existing features (F2 advisor toggle, F7/F8 flush hotkeys, shader cache clear/preload, SAVE AND CLOSE GAME, GPU adapter picker, M&K bindings sub-menu, gamepad menu hooks, gray shadow lift, RTX 40 3x FG, MFG unlocker, Series S picture modes, save export/import) with zero new dependencies and the exact same file layout/data flow so future settings drop right in.

Screenshots

`GTA 6 - Vice City UI

Testing

  • Built and tested on Windows 11 (3840x2160, 2560x1440 SDR, RTX 4070 Ti SUPER, build=release, console=series-x).
  • Verified F1 menu toggle/scrolling (keyboard), M&K bindings & save import sub-menus, settings persistence, F2 advisor, and F3 stats panel.

(Note: "Allow edits by maintainers" is enabled—feel free to tweak colors, spacing, or build on this directly.)

**@⁠ArnoX5** on GitHub · 2026-12-01 00:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4634) `ArnoX5:ui/vice-city-overlay` → `main` · +1165 −2498 · 3 files · 1 commits · merged 2026-12-01 01:28 UTC ###Disclaimer AI-generated: Gemini was used to generate this new UI theme. Tested for mannny builds now, works perfectly for me all the time. So, thought I'd share it. AI-generated Description from this point onwards.... ### Summary A clean visual and usability overhaul of the in-game overlay UI (`font.rs`, `menu.rs`, `panel.rs`), built directly on the existing `main` architecture with **zero new dependencies** and **~1,300 fewer lines of code** (`+1,165 / -2,498`). ### What’s New - **Crisp Anti-Aliased Typography & Multi-Format Packing (`font.rs`):** - Replaces the 5x7 dot-matrix font with smooth anti-aliased Windows GDI **Segoe UI** (headers) and **Consolas** (aligned rows & metrics) with resolution-scaled drop shadows for readability over bright and dark scenes. - Supports all 4 swapchain formats (`BGRA8`, `RGBA8`, 10-bit `R10G10B10A2`, and HDR `R16G16B16A16_FLOAT` with linear conversion) and keeps the legacy `glyph()` table intact for upstream helper compatibility. - **Dynamic Resolution Scaling + Custom Override:** Automatically scales the F1 menu, FPS pill, Startup Notice, F2 Performance Advisor, and F3 panel based on render height (1080p / 1440p / 4K, clamped `95%–275%`) so the overlay stays proportional without covering too much of the screen. Also supports `VICTORY_UI_PCT` (e.g. `VICTORY_UI_PCT=100`, min `50`) for manual sizing on large TVs or ultrawides. - **Smoother Menu Navigation (`menu.rs`):** - **Hold-to-scroll key repeat:** Holding Up/Down/Left/Right repeats smoothly (300ms delay, 60ms interval) instead of requiring repeated taps. - **Mouse-wheel scrolling:** Scroll wheel navigates cleanly across the main settings list, Key Bindings, and Import Save views. - **Centered viewport & wrap-around:** Keeps the active row centered in the 20-row window and wraps seamlessly from bottom to top (and vice versa). - **Refined Vice City Visual Hierarchy & FPS Pill (`menu.rs`):** - Pink-to-cyan gradient top accent bar, subtle bordered card, active-row highlight bar with a pink left indicator, and a matching compact **top-left FPS / FG pill** when the menu and F3 panel are closed. - Color-coded value states (mint for enabled/FG multipliers, cyan for DLSS/resolutions, muted for off, amber for warnings/notes) plus `LIVE` / `*` / `*LIVE` badges, contextual per-item footer descriptions, and double-Enter confirmation on restart/clear/import actions. - **Auto-Sized Startup Notice & F2 Performance Advisor (`panel.rs`):** - **Startup Notice (`Notice`):** Dynamically calculates both width and height from its text lines and column count so the banner stays compact with no wasted space or clipped text. - **F2 Performance Advisor (`WHAT LIMITS FPS`):** Dynamically sizes its height (`draw_h`) to fit only the active lines, with color-coded severity (`LIMIT`/`ALSO` coral, `TRY` mint, `NOTE` amber), and yields cleanly while the Startup Notice is active. - **Slim Vertical Top-Left F3 Stats Panel (`panel.rs`):** - Compact vertical layout with dedicated background `F3` key polling, live `DXR`/`RT` and `FG 2X–6X`/`FSR3` readouts, threshold alerts (VRAM >85%, free RAM <3 GB, dropped draws), and **4 compact 2-minute sparkline graphs** (FPS, CPU, RAM, VRAM). - **100% Upstream Feature Parity & Drop-In Maintainable:** Preserves all existing features (`F2` advisor toggle, `F7`/`F8` flush hotkeys, shader cache clear/preload, `SAVE AND CLOSE GAME`, GPU adapter picker, M&K bindings sub-menu, gamepad menu hooks, gray shadow lift, RTX 40 3x FG, MFG unlocker, Series S picture modes, save export/import) with zero new dependencies and the exact same file layout/data flow so future settings drop right in. ### Screenshots <img width="3840" height="2160" alt="`GTA 6 - Vice City UI" src="https://github.com/user-attachments/assets/a60edc02-eff2-4a18-a1e6-b10d7b43ad7d" /> ### Testing - Built and tested on Windows 11 (3840x2160, 2560x1440 SDR, RTX 4070 Ti SUPER, `build=release`, `console=series-x`). - Verified F1 menu toggle/scrolling (keyboard), M&K bindings & save import sub-menus, settings persistence, F2 advisor, and F3 stats panel. *(Note: "Allow edits by maintainers" is enabled—feel free to tweak colors, spacing, or build on this directly.)*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 00:29:08 +00:00
github-bot changed target branch from main to gh-pr/4634/base 2026-12-01 01:30:30 +00:00
github manually merged commit 3bde492368 into gh-pr/4634/base 2026-12-01 01:30:32 +00:00
Author
Owner

@⁠xrobau on GitHub · 2026-12-01 01:51 UTC · original

Brilliant change, massive improvement to the look.

**@⁠xrobau** on GitHub · 2026-12-01 01:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4634#issuecomment-7297978614) Brilliant change, massive improvement to the look.
Author
Owner

@⁠Matartos on GitHub · 2026-12-01 08:51 UTC · original

Great work on the new F1/F2/F3 interface!

Are you planning to add multilingual support in the future?

It would be great to support:

  • English
  • Polish
  • German
  • French
  • Spanish
  • Italian
  • Portuguese (Brazil)
  • Ukrainian
  • Czech
  • Russian
  • Turkish
  • Chinese
  • Japanese
  • Korean

Ideally, translations could be loaded from external language files, allowing the community to add and improve translations without recompiling the application.

Automatic Windows language detection, manual language selection in F1, and English fallback for missing translations would also be useful.

Sym3d has already implemented a similar localization system in #3982, and we have prepared an improved Polish translation in Sym3d/VIctory-NVIDIA#1.

Would it be possible to integrate these solutions into the new official interface rather than developing separate UI forks?

I'd be happy to help with Polish localization and testing.

**@⁠Matartos** on GitHub · 2026-12-01 08:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4634#issuecomment-7305876335) Great work on the new F1/F2/F3 interface! Are you planning to add multilingual support in the future? It would be great to support: - English - Polish - German - French - Spanish - Italian - Portuguese (Brazil) - Ukrainian - Czech - Russian - Turkish - Chinese - Japanese - Korean Ideally, translations could be loaded from external language files, allowing the community to add and improve translations without recompiling the application. Automatic Windows language detection, manual language selection in F1, and English fallback for missing translations would also be useful. Sym3d has already implemented a similar localization system in #3982, and we have prepared an improved Polish translation in Sym3d/VIctory-NVIDIA#1. Would it be possible to integrate these solutions into the new official interface rather than developing separate UI forks? I'd be happy to help with Polish localization and testing.
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
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
github/trustno1-coder--VIctory-NVIDIA!4635
No description provided.