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

Merged
ArnoX5 merged 1 commit from upstream-pr/4634 into main 2026-12-01 01:28:33 +00:00
ArnoX5 commented 2026-12-01 00:24:17 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ArnoX5 on 2026-12-01T00:24:17Z.


###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.)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5576328433 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4634). Originally posted by [ArnoX5](https://github.com/ArnoX5) on 2026-12-01T00:24:17Z. --- ###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.)*
xrobau commented 2026-12-01 01:51:50 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by xrobau on 2026-12-01T01:51:50Z.


Brilliant change, massive improvement to the look.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7297978614 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4634#issuecomment-7297978614). Originally posted by [xrobau](https://github.com/xrobau) on 2026-12-01T01:51:50Z. --- Brilliant change, massive improvement to the look.
Matartos commented 2026-12-01 08:51:27 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Matartos on 2026-12-01T08:51:27Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7305876335 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4634#issuecomment-7305876335). Originally posted by [Matartos](https://github.com/Matartos) on 2026-12-01T08:51:27Z. --- 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.
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!4634
No description provided.