Skip to content

[TEST] feat(QoL): custom Prey Hunt encounter bar - #2

Closed
svart2521 wants to merge 1 commit into
mainfrom
test-pr-layout
Closed

svart2521 wants to merge 1 commit into
mainfrom
test-pr-layout

Conversation

@svart2521

@svart2521 svart2521 commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

TEST PR - layout preview only, will be closed without merging. The text below is sample content based on the Prey Hunt bar.

What does this PR do?

Adds a Prey Hunt Bar to Quality of Life: a large hunt icon with a 4-segment tier bar under it (Cold, Warm, Hot, Final) that fills and recolors as the hunt heats up, plus a pulsing dot while the hunt has a timer. Hovering it shows Blizzard's own hunt text.

Cause: Blizzard's Prey Hunt bar lives in UIWidgetPowerBarContainerFrame, which Edit Mode can move mid-hunt, so the bar jumps away from where the player put it.

Fix:

  • EllesmereUIQoL/EllesmereUIQoL_PreyBar.lua reads the same widget data from C_UIWidgetManager and draws it on an EUI-owned frame that Edit Mode never touches. Blizzard's container is only hidden by alpha while a hunt shows, never reparented or moved.
  • The bar registers with Unlock Mode as a square element. A new opt-in singleSize element flag (MakeUnlockElement, EUI_UnlockMode_Movers.lua) gives it one Size box that sets width and height together, with no width/height match buttons. Elements that don't set the flag, including the existing linkedDimensions ones, are unchanged.
  • savePos stores the coordinates Unlock Mode hands over, so Exit Without Saving puts the bar back on its old spot.

Cost: one UPDATE_UI_WIDGET listener that returns at once for any widget that is not a Prey Hunt; the frame repaints only when the hunt's widget changes.

How was it tested?

  • Client: Retail
  • Started a Prey Hunt and watched the bar step through Cold, Warm, Hot and Final
  • Unlock Mode: dragged the bar, typed a new Size, then Exit Without Saving and confirmed it went back to its old spot
  • Reloaded mid-hunt and confirmed the bar came back on its saved spot

Guardrails and the locale-key check pass.

Screenshots

Before: Blizzard's bar after jumping mid-hunt.
(image)

After: the EllesmereUI bar on its saved spot.
(image)

Checklist

  • New settings default OFF (no behavior change without opt-in) - the bar has no setting and shows whenever a hunt is active
  • Zero cost while disabled: no events registered, no polling, no hooks doing work, no tickers; nothing built beyond an inert event frame or combat queue - N/A: no setting to disable
  • Cheap while enabled: event-driven (no polling, no timer-based logic, no per-frame allocations) - one widget event, filtered by widget type
  • No writes onto Blizzard-owned frames (weak-table pattern used); HookScript/hooksecurefunc only, never SetScript on Blizzard frames - Blizzard's container only gets SetAlpha
  • Tested in-game on live; no version gates or pre-Midnight APIs added

Throwaway commit used only to open a test pull request on the fork and see how the repo PR template renders. Never merged; the branch is deleted afterwards.
@svart2521 svart2521 closed this Oct 31, 2026
@svart2521 svart2521 changed the title [TEST] QoL: add custom Prey Hunt encounter bar [TEST] feat(QoL): custom Prey Hunt encounter bar Oct 31, 2026
@svart2521
svart2521 deleted the test-pr-layout branch October 31, 2026 16:29
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