Repository navigation
Avoid Overlap: elements make room for each other - #17
Merged
Merged
Conversation
- that might need some work still
(unless the gtnhLib FontRendering classes are better, up to review)
- Elements are measured once per frame, not again for every element that asks - Editor outline and link lines reuse the box positions it already measured - Elements with their own list only look at the elements on it
Contributor
- (jack) the "who's smaller" check runs again every frame instead of once when they tie. So when one box grows past the other, they swap places mid-display
Chitak985
previously requested changes
Nov 19, 2026
Chitak985
left a comment
Member
There was a problem hiding this comment.
Everything is mostly good except for one thing
Chitak985
approved these changes
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.
Summary
Avoid Overlap
Elements can make room for each other. While two would cover each other, one moves aside, then moves back once the other is gone (for example Waila's box moving below the boss bar like in example).
Settings (Customize > Placement)
Editor
API
HudElement.setAvoid(String... ids): elements this one makes room forHudElement.setAvoidSides(AvoidSide...): which way to move, in orderHudElement.setNeverMove(): never moves, others still make room for itImplements #16
Checklist