Commit a9c1829
committed
minimap: a tooltip for the tracking button, and no 3.x icon on a 1.12 interface
Two faults on the same button, either of which was enough to make hovering it
do nothing useful.
GameTooltip:SetTrackingSpell was in neither the method table nor the no-op
allowlist, so the lookup answered nil. 1.12's Minimap.xml opens the tracking
frame's OnEnter with SetOwner and that call, so the handler raised on its second
line with the tooltip already owned by a frame that then wrote nothing into it.
It is the spell's own tooltip now, through SetSpellByID, because "Track
Humanoids" is a title with nothing under it saying what that does.
And GetTrackingTexture answered Interface\Minimap\Tracking\None for nothing
tracked, which is 3.x's art. A 1.12 client has no Interface\Minimap\Tracking
folder at all - interface.MPQ, patch.MPQ and patch-2.MPQ hold nothing under that
path - and its Minimap.xml hides the tracking frame outright when this answers
nil. So the frame was shown with a missing texture in it rather than hidden.
Only 1.12 changes: the dropdown and its None entry are 2.x's.
The spell id the tooltip needs comes from __WoweeActiveTrackingSpell rather than
from a fifth value on GetTrackingInfo, which is 4.x's own - it says whether an
entry nests under the one above it, and a spell id would have been read as that.
Reported in #1321 parent aa89e1d commit a9c1829
2 files changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7108 | 7108 | | |
7109 | 7109 | | |
7110 | 7110 | | |
| 7111 | + | |
| 7112 | + | |
| 7113 | + | |
| 7114 | + | |
| 7115 | + | |
| 7116 | + | |
| 7117 | + | |
| 7118 | + | |
| 7119 | + | |
| 7120 | + | |
| 7121 | + | |
| 7122 | + | |
| 7123 | + | |
| 7124 | + | |
| 7125 | + | |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
7111 | 7132 | | |
7112 | 7133 | | |
7113 | 7134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2288 | 2288 | | |
2289 | 2289 | | |
2290 | 2290 | | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
2291 | 2304 | | |
2292 | 2305 | | |
2293 | 2306 | | |
| |||
2302 | 2315 | | |
2303 | 2316 | | |
2304 | 2317 | | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
2305 | 2324 | | |
2306 | 2325 | | |
2307 | 2326 | | |
| |||
2315 | 2334 | | |
2316 | 2335 | | |
2317 | 2336 | | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
2318 | 2352 | | |
2319 | 2353 | | |
2320 | 2354 | | |
| |||
6433 | 6467 | | |
6434 | 6468 | | |
6435 | 6469 | | |
| 6470 | + | |
6436 | 6471 | | |
6437 | 6472 | | |
6438 | 6473 | | |
| |||
0 commit comments