Repository navigation
Fix(Quest Tracker): objective text running under the quest item button - #3588
Merged
EllesmereGaming merged 1 commit intoNov 24, 2026
Conversation
## What does this PR do?
Fixes objective text in the custom quest tracker running under a quest's use-item button. A long first objective (e.g. "- 0/1 Filled Cliffspring Falls Sample") was drawn underneath the item icon.
Cause: the quest title row leaves room for the item button, but the button is taller than one title line and reaches down into the first objective row. Objective and timer lines always used the full row width, so their text ran under it.
Fix: in `EllesmereUIQuestTracker_Custom.lua`, `Render` records each quest's item button bottom edge and width; a new `LineW` helper gives objective, failed, ready-to-turn-in and timer lines that start beside the button the same reduced width as the title. Lines below the button keep the full width, so text wraps (or cuts with "...") before the icon.
Cost: one comparison per objective line during a render; nothing when item buttons are off.
## How was it tested?
Client: Forever
- Custom quest tracker with quest item buttons on; quest with a usable item and a long objective ("The Principal Source"): the objective now stops before the icon instead of running under it, with Wrap Objectives on and off.
- Quests without an item and objective lines below the icon still use the full width.
Guardrails and the locale-key check pass.
## Checklist
- [x] New settings default **OFF** (no behavior change without opt-in) - N/A: bug fix, no new settings
- [x] 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 - only runs inside the existing render with item buttons on
- [x] Cheap while enabled: event-driven (no polling, no timer-based logic, no per-frame allocations) - one comparison per line, no allocations
- [x] No writes onto Blizzard-owned frames (weak-table pattern used); `HookScript`/`hooksecurefunc` only, never `SetScript` on Blizzard frames - only EUI's own rows
- [x] Tested in-game on live; no version gates or pre-Midnight APIs added
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.
What does this PR do?
Fixes objective text in the custom quest tracker running under a quest's use-item button. A long first objective (e.g. "- 0/1 Filled Cliffspring Falls Sample") was drawn underneath the item icon.
Cause: the quest title row leaves room for the item button, but the button is taller than one title line and reaches down into the first objective row. Objective and timer lines always used the full row width, so their text ran under it.
Fix: in
EllesmereUIQuestTracker_Custom.lua,Renderrecords each quest's item button bottom edge and width; a newLineWhelper gives objective, failed, ready-to-turn-in and timer lines that start beside the button the same reduced width as the title. Lines below the button keep the full width, so text wraps (or cuts with "...") before the icon.Cost: one comparison per objective line during a render; nothing when item buttons are off.
Screenshots
Before:

After:

How was it tested?
Client: Forever
Guardrails and the locale-key check pass.
Checklist
HookScript/hooksecurefunconly, neverSetScripton Blizzard frames - only EUI's own rows