Repository navigation
Fix(Quest Tracker): custom tracker quests ignore left clicks - #3590
Merged
Merged
Conversation
## 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
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 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.
Fix:
EllesmereUIQuestTracker_Custom.lua: objective lines take the mouse again and pass clicks and hover to their title.SpanRowswidens the rows' hit rects so the whole quest (title, objectives, gaps, indent, full width) is one click area.InitCustomsetsObjectiveTrackerLineFont/ObjectiveTrackerHeaderFontto 1px. Only the muted tracker uses them, so every watched quest fits and gets a block. Ahooksecurefuncon theirSetFontObjectre-applies it after Edit Mode's Text Size.EllesmereUIQuestTracker_Forever.lua:SortKeyForzone 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
GetExistingBlockreturned nil) and ignored left clicks. After it, all 17 have a block.Guardrails and the locale-key check pass.
Checklist
HookScript/hooksecurefunconly, neverSetScripton Blizzard frames - font objects are changed viaSetFontplus ahooksecurefunc; no frame fields are written