Skip to content

Fix(Quest Tracker): custom tracker quests ignore left clicks - #3590

Merged
EllesmereGaming merged 1 commit into
EllesmereGaming:mainfrom
svart2521:bug#426
Nov 24, 2026
Merged

EllesmereGaming merged 1 commit into
EllesmereGaming:mainfrom
svart2521:bug#426

Conversation

@svart2521

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes left clicks on the Forever custom quest tracker often doing nothing with Quest Click set to Open Quest Log (bug #426).

Root cause: two separate gaps, plus a sort bug that made clicks look broken.

  • Only the quest title line took the mouse. Objective, timer and reagent lines had mouse input off, so clicking anything under a title did nothing.
  • Open Quest Log goes through a secure overlay that clicks the quest's header in Blizzard's muted tracker. That tracker still lays out at its Edit Mode height and only builds blocks for quests that fit. With around a dozen watched quests the rest had no block, so their clicks had nowhere to go. Blizzard lays out in watch-list order and we sort by zone, so the dead quests looked random.
  • Zone sort keyed on the quest log's header order. Forever's log lists the current and map-viewed zones first, and opening a quest shows its zone on the map, so every click reshuffled the list.

Fix:

  • EllesmereUIQuestTracker_Custom.lua: objective lines take the mouse again and pass clicks and hover to their title. SpanRows widens the rows' hit rects so the whole quest (title, objectives, gaps, indent, full width) is one click area.
  • The overlay covers that same area, short of the row-hook column; quest item buttons sit above it.
  • InitCustom sets ObjectiveTrackerLineFont / ObjectiveTrackerHeaderFont to 1px. Only the muted tracker uses them, so every watched quest fits and gets a block. A hooksecurefunc on their SetFontObject re-applies it after Edit Mode's Text Size.
  • EllesmereUIQuestTracker_Forever.lua: SortKeyFor zone mode puts the player's zone (or instance) first, then the other zones A-Z by header name, so the order no longer depends on the map.

Known limit: zone auto-tracked quests that are not on the watch list still have no Blizzard block, so Open Quest Log does nothing for them (unchanged).

Cost: one hit-rect update per row per render; the font change runs once at login and only with the custom tracker on.

How was it tested?

Client: Forever

  • 17 watched quests: before the fix, quests 12-17 had no block in Blizzard's tracker (GetExistingBlock returned nil) and ignored left clicks. After it, all 17 have a block.
  • Left click on the title and on objective lines of the last quest opens the quest log on that quest.
  • Right click and hover on objective lines show the quest menu and tooltip.
  • Sort by Zone: clicking quests in different zones keeps the list order; the current zone stays on top.

Guardrails and the locale-key check pass.

Checklist

  • New settings default OFF (no behavior change without opt-in) - N/A: 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 - the font hook is only installed when the custom tracker loads
  • Cheap while enabled: event-driven (no polling, no timer-based logic, no per-frame allocations)
  • No writes onto Blizzard-owned frames (weak-table pattern used); HookScript/hooksecurefunc only, never SetScript on Blizzard frames - font objects are changed via SetFont plus a hooksecurefunc; no frame fields are written
  • Tested in-game on live; no version gates or pre-Midnight APIs added

## What does this PR do?

Fixes left clicks on the Forever custom quest tracker often doing nothing with Quest Click set to Open Quest Log ([bug EllesmereGaming#426](https://ellesmereui.com/bugs/426/clicking-on-quest-tracker-listing-doesn-t-always-open-quest)).

Root cause: two separate gaps, plus a sort bug that made clicks look broken.
- Only the quest title line took the mouse. Objective, timer and reagent lines had mouse input off, so clicking anything under a title did nothing.
- Open Quest Log goes through a secure overlay that clicks the quest's header in Blizzard's muted tracker. That tracker still lays out at its Edit Mode height and only builds blocks for quests that fit. With around a dozen watched quests the rest had no block, so their clicks had nowhere to go. Blizzard lays out in watch-list order and we sort by zone, so the dead quests looked random.
- Zone sort keyed on the quest log's header order. Forever's log lists the current and map-viewed zones first, and opening a quest shows its zone on the map, so every click reshuffled the list.

Fix:
- `EllesmereUIQuestTracker_Custom.lua`: objective lines take the mouse again and pass clicks and hover to their title. `SpanRows` widens the rows' hit rects so the whole quest (title, objectives, gaps, indent, full width) is one click area.
- The overlay covers that same area, short of the row-hook column; quest item buttons sit above it.
- `InitCustom` sets `ObjectiveTrackerLineFont` / `ObjectiveTrackerHeaderFont` to 1px. Only the muted tracker uses them, so every watched quest fits and gets a block. A `hooksecurefunc` on their `SetFontObject` re-applies it after Edit Mode's Text Size.
- `EllesmereUIQuestTracker_Forever.lua`: `SortKeyFor` zone mode puts the player's zone (or instance) first, then the other zones A-Z by header name, so the order no longer depends on the map.

Known limit: zone auto-tracked quests that are not on the watch list still have no Blizzard block, so Open Quest Log does nothing for them (unchanged).

Cost: one hit-rect update per row per render; the font change runs once at login and only with the custom tracker on.

## How was it tested?

Client: Forever

- 17 watched quests: before the fix, quests 12-17 had no block in Blizzard's tracker (`GetExistingBlock` returned nil) and ignored left clicks. After it, all 17 have a block.
- Left click on the title and on objective lines of the last quest opens the quest log on that quest.
- Right click and hover on objective lines show the quest menu and tooltip.
- Sort by Zone: clicking quests in different zones keeps the list order; the current zone stays on top.

Guardrails and the locale-key check pass.

## Checklist

- [x] New settings default **OFF** (no behavior change without opt-in) - N/A: 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 - the font hook is only installed when the custom tracker loads
- [x] Cheap while enabled: event-driven (no polling, no timer-based logic, no per-frame allocations)
- [x] No writes onto Blizzard-owned frames (weak-table pattern used); `HookScript`/`hooksecurefunc` only, never `SetScript` on Blizzard frames - font objects are changed via `SetFont` plus a `hooksecurefunc`; no frame fields are written
- [x] Tested in-game on live; no version gates or pre-Midnight APIs added
@EllesmereGaming
EllesmereGaming merged commit 473f5a0 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