Skip to content

Keep the main HUD's edge gap when Wisp resizes it - #226

Merged
Views2k merged 1 commit into
mainfrom
fix/hud-placement-followup
Nov 19, 2026
Merged

Views2k merged 1 commit into
mainfrom
fix/hud-placement-followup

Conversation

@Views2k

@Views2k Views2k commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Follow-up to #224, found in review before the 2.7.6 tag.

What changes

  • Main HUD resized by Wisp. In the non-native layouts, turning the attached G-force meter on widens the window from its top-left corner. With the margin gone from RestorePosition, a HUD at its default top-right position ended up touching the screen edge. OverlayPlacementGeometry.KeepEdgeGaps now keeps the gap the window had to an edge it would cross, up to the default margin: a default placement keeps its 24 DIP, and a HUD the player put against the edge stays against it. The native layout is unchanged.
  • Release notes. The 2.7.6 notes named the main HUD among the elements that can sit against any edge. That is not yet true for the native layout with hidden attached gauges (tracked separately), so the notes now list the gauges only.

Checked

  • App and test projects compile.
  • OverlayPlacementGeometryTests: default margin kept, flush stays flush, a smaller gap is kept, a far element that grows past the edge gets the default margin, an element that still fits does not move; bottom edge; unknown position passes through.

Not checked

  • Not run in game. Shared by Steam and the Xbox app.

Turning an attached gauge on in the non-native layouts widened the HUD
into the screen edge once restores stopped keeping a margin. The window
now keeps the gap it had, up to the default margin. The 2.7.6 notes list
the gauges that can sit against any edge.
@Views2k
Views2k marked this pull request as ready for review November 19, 2026 23:35
@Views2k
Views2k merged commit 9c85cf3 into main Nov 19, 2026
10 checks passed
@Views2k
Views2k deleted the fix/hud-placement-followup branch November 19, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant