Skip to content

fix(hud): keep a snapped HUD on its guide when it resizes - #1391

Open
Tellinq wants to merge 1 commit into
Polyfrost:v1from
Tellinq:fix/hud-snap-anchor
Open

Tellinq wants to merge 1 commit into
Polyfrost:v1from
Tellinq:fix/hud-snap-anchor

Conversation

@Tellinq

@Tellinq Tellinq commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

When you snap a HUD to a guide in the editor, it now remembers which side or center you lined up and grows from there. Previously a HUD could "slide" off the line it was snapped to as soon as its size changed.

This also gives the align buttons the same behavior. If you move the HUD off the line or pick an anchor yourself, it goes back to the normal behavior.

Related Issue(s)

Fixes #1310 - I confirmed with @awruff that this was going to address it based on the description, but just needs actual testing.

Checklist

  • I made a clear description of what was changed
  • I stated why these changes were necessary
  • I updated documentation or said what needs to be updated
  • I made sure these changes are backwards compatible
  • This pull request is for one feature/bug fix

@lunaynx
lunaynx force-pushed the fix/hud-snap-anchor branch from 4db342c to 9f18f8d Compare November 21, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Automatically align huds

1 participant