Skip to content

QoL: add custom Prey Hunt encounter bar - #2105

Open
svart2521 wants to merge 1 commit into
EllesmereGaming:mainfrom
svart2521:custom-prey-encounter-bar
Open

svart2521 wants to merge 1 commit into
EllesmereGaming:mainfrom
svart2521:custom-prey-encounter-bar

Conversation

@svart2521

Copy link
Copy Markdown
Contributor

Adds a standalone Prey Hunt Bar (EllesmereUIQoL_PreyBar.lua): icon plus a segmented tier bar mirroring C_UIWidgetManager's widget data, Cold tier yellow fill, 1px black borders per segment with a visible 1px gap. Default icon size 60. Registers with unlock mode as a linked-dimensions (always square) element. Overrides and hides old prey bar created via Encounter bar which was known to cause jumping issues as well as broken visual elements due to Blizzard bugs.

Also extends the shared unlock-mode cog (EUI_UnlockMode.lua) and MakeUnlockElement (EllesmereUI.lua) with two small generalizations used by this element:

  • linkedDimensions elements now get a single "Size" input in the cog instead of separate Width/Height boxes, since the two can never diverge.
  • New noMatchSource flag lets an element opt out of the width/height MATCH hover links entirely (Prey Bar keeps only the Anchor link -- matching a single Size value's width and height separately makes no sense).
image image image

Adds a standalone Prey Hunt Bar (EllesmereUIQoL_PreyBar.lua): icon plus a
segmented tier bar mirroring C_UIWidgetManager's widget data, Cold tier
yellow fill, 1px black borders per segment with a visible 1px gap. Default
icon size 60. Registers with unlock mode as a linked-dimensions (always
square) element.

Also extends the shared unlock-mode cog (EUI_UnlockMode.lua) and
MakeUnlockElement (EllesmereUI.lua) with two small generalizations used by
this element:
- linkedDimensions elements now get a single "Size" input in the cog
  instead of separate Width/Height boxes, since the two can never diverge.
- New noMatchSource flag lets an element opt out of the width/height MATCH
  hover links entirely (Prey Bar keeps only the Anchor link -- matching a
  single Size value's width and height separately makes no sense).
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