Skip to content

fix(hud): keep the editor hint off the hovered HUD's action bar - #1390

Open
Zoobooo wants to merge 1 commit into
Polyfrost:v1from
Zoobooo:fix/hud-hint-action-bar
Open

Zoobooo wants to merge 1 commit into
Polyfrost:v1from
Zoobooo:fix/hud-hint-action-bar

Conversation

@Zoobooo

@Zoobooo Zoobooo commented Nov 19, 2026

Copy link
Copy Markdown

Description

In the HUD editor, the hint pill (for example "This HUD is locked · Use the lock button above it to move or resize it") can cover the hovered HUD's action bar, which holds the lock button the hint points to.

hudActionBarLayout places the action bar below the HUD when it fits, and only above it otherwise. The hint placement only kept a fixed 40dp strip above the hovered HUD clear, so when the bar sat below the HUD (the usual case, for example with the chat window), the hint could be placed right on top of it.

The hint placement now adds the hovered HUD's real action bar rectangle as an obstacle, wherever the bar ended up.

Built the 1.8.9 (Ornithe) jar. Not yet tested in game.

Related Issue(s)

None filed.

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: no documentation affected. The oneconfig.hud.hint.locked text still says the lock button is "above it" even though it is usually below, which might be worth rewording
  • I made sure these changes are backwards compatible
  • This pull request is for one feature/bug fix

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.

1 participant