Skip to content

Fix(Quest Tracker): objective text running under the quest item button - #3588

Merged
EllesmereGaming merged 1 commit into
EllesmereGaming:mainfrom
svart2521:quest-text-overlapping-use-item-icon
Nov 24, 2026
Merged

EllesmereGaming merged 1 commit into
EllesmereGaming:mainfrom
svart2521:quest-text-overlapping-use-item-icon

Conversation

@svart2521

Copy link
Copy Markdown
Contributor

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.

Screenshots

Before:
image

After:
image

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

  • New settings default OFF (no behavior change without opt-in) - N/A: bug fix, no new settings
  • 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
  • Cheap while enabled: event-driven (no polling, no timer-based logic, no per-frame allocations) - one comparison per line, no allocations
  • No writes onto Blizzard-owned frames (weak-table pattern used); HookScript/hooksecurefunc only, never SetScript on Blizzard frames - only EUI's own rows
  • Tested in-game on live; no version gates or pre-Midnight APIs added

## 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
@EllesmereGaming
EllesmereGaming merged commit 2891e6e into EllesmereGaming:main Nov 24, 2026
2 checks passed
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.

2 participants