Repository navigation
Let HUD elements be placed against any screen edge - #224
Merged
Merged
Conversation
A position the player chose is clamped to its monitor without a margin. Default positions keep their margins. The drift gauge's default sits centered 12 DIP below the top edge, and its settings button is labeled Center at top.
Views2k
marked this pull request as ready for review
November 19, 2026 23:20
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #223.
What changes
OverlayPlacementGeometry.ClampOnScreen: fully on its monitor, no margin, monitor bounds instead of the work area. This applies to the drift gauge, lap delta, live map, G-force, boost, tire temperature, power and torque windows and to the main HUD in every layout. The native-layout main HUD already behaved this way.ClampInsideand thePlace*helpers are unchanged and are still used for default positions.Saved positions are not migrated: every position that was valid before is still valid.
Checked
OverlayPlacementGeometryTests: a chosen position may touch each edge and corner, an off-screen position returns to the edge without a margin, an oversized element starts at the top-left, defaults keep the margin, the native clamp is the same rule.DriftGaugePlacementTests: centered default with the 12-DIP gap at every scale and monitor offset.ClampOnScreenwith the monitor bounds, and the drift settings button is "Center at top".Not checked