[pr-feature] F1 FPS AND STATS POSITION: add top-center and bottom-center (DARNER_HUD_SIDE) #175

Open
cadfan wants to merge 1 commit from cadfan/Darner:pr/hud-center into main
Contributor

Refs #174

Contributor role (optional)

  • Fluxer ID: 1578219648912982022

What it changes

All four existing DARNER_HUD_SIDE corners ( op-left, op-right, ottom-left, ottom-right) overlap active game HUD elements (health bar, cash/ammo, minimap edge, and contextual LT prompts).

This PR adds horizontal center placement so both the FPS pill and the F3 stats panel can sit in op-center or ottom-center (ottom-center leaves all corner HUD elements unobstructed):

  • Replaces the 2-way hud_right() boolean with a 3-way HudAlign { Left, Center, Right } (AtomicU8).
  • Adds op-center (plus center alias) and ottom-center to DARNER_HUD_SIDE, hud_x, panel::corner, and F1 DISPLAY AND INFO -> FPS AND STATS POSITION.
  • Updates locales/en.json, locales/zh-CN.json, README.md, and unit tests.

How it was tested

  • Tested revision: 24f2fdd (plus combined gameplay test with PR #176 on local merge d2915b)
  • Commands and results:
    • cargo xtask policy — passed (553 files ok)
    • cargo clippy --workspace --all-targets --locked -- -D warnings — passed (0 warnings)
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings — passed (0 warnings)
    • cargo test --workspace --locked — darner-gpu 1,757 passed / 0 failed (81 ignored) and all other non-shader workspace crates passed (darner-shader stopped during oracle64::legacy_mul_forms_are_exact, untouched by this PR)
  • Gameplay, when relevant: NVIDIA GeForce RTX 5080 (driver 621.24.0, Windows 10.0.26200), Xbox Series S profile, 1920x1080 fullscreen, DLSS Performance (0.5), DLSS Frame Generation 2x, ray tracing off. Verified all 6 positions live in F1; ottom-center sits completely clear of the game HUD.
  • Before and after, when relevant: N/A (layout option, no performance change).
  • Shader wave sizes tested, when relevant: N/A (no shader changes).
  • Coverage gaps: darner-shader test suite was not run to completion (untouched by this PR); Linux/Proton build not tested.

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: #154 (touches crates/darner-gpu/src/host/menu.rs for the new tabbed F1 skin; does not add op-center/ottom-center or change DARNER_HUD_SIDE).
Refs #174 ## Contributor role (optional) - Fluxer ID: 1578219648912982022 ## What it changes All four existing DARNER_HUD_SIDE corners ( op-left, op-right, ottom-left, ottom-right) overlap active game HUD elements (health bar, cash/ammo, minimap edge, and contextual LT prompts). This PR adds horizontal center placement so both the FPS pill and the F3 stats panel can sit in op-center or ottom-center (ottom-center leaves all corner HUD elements unobstructed): - Replaces the 2-way hud_right() boolean with a 3-way HudAlign { Left, Center, Right } (AtomicU8). - Adds op-center (plus center alias) and ottom-center to DARNER_HUD_SIDE, hud_x, panel::corner, and F1 DISPLAY AND INFO -> FPS AND STATS POSITION. - Updates locales/en.json, locales/zh-CN.json, README.md, and unit tests. ## How it was tested - Tested revision: 24f2fdd (plus combined gameplay test with PR #176 on local merge d2915b) - Commands and results: - cargo xtask policy — passed (553 files ok) - cargo clippy --workspace --all-targets --locked -- -D warnings — passed (0 warnings) - cargo clippy --workspace --all-targets --all-features --locked -- -D warnings — passed (0 warnings) - cargo test --workspace --locked — darner-gpu 1,757 passed / 0 failed (81 ignored) and all other non-shader workspace crates passed (darner-shader stopped during oracle64::legacy_mul_forms_are_exact, untouched by this PR) - Gameplay, when relevant: NVIDIA GeForce RTX 5080 (driver 621.24.0, Windows 10.0.26200), Xbox Series S profile, 1920x1080 fullscreen, DLSS Performance (0.5), DLSS Frame Generation 2x, ray tracing off. Verified all 6 positions live in F1; ottom-center sits completely clear of the game HUD. - Before and after, when relevant: N/A (layout option, no performance change). - Shader wave sizes tested, when relevant: N/A (no shader changes). - Coverage gaps: darner-shader test suite was not run to completion (untouched by this PR); Linux/Proton build not tested. ## 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: #154 (touches crates/darner-gpu/src/host/menu.rs for the new tabbed F1 skin; does not add op-center/ottom-center or change DARNER_HUD_SIDE).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'pr/hud-center:cadfan-pr/hud-center'
git switch 'cadfan-pr/hud-center'

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 'cadfan-pr/hud-center'
git switch 'cadfan-pr/hud-center'
git rebase 'main'
git switch 'main'
git merge --ff-only 'cadfan-pr/hud-center'
git switch 'cadfan-pr/hud-center'
git rebase 'main'
git switch 'main'
git merge --no-ff 'cadfan-pr/hud-center'
git switch 'main'
git merge --squash 'cadfan-pr/hud-center'
git switch 'main'
git merge --ff-only 'cadfan-pr/hud-center'
git switch 'main'
git merge 'cadfan-pr/hud-center'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
TrustNo1/Darner!175
No description provided.