GameTooltip:GetItem() empty name and link
Hey there,
so some tooltips return empty values (name = "" and link = []) if you use GameTooltip:GetItem(), for example tooltips from the QuestFrame and I believe the TradeSkillFrame. My interface has item quality border coloring for tooltips but obviously not for said tooltips. Lua Code:
I tried it with this function (this probably works only for quest items though) Lua Code:
Anyone has an idea how to approach this? update: The are six QuestProgressItem buttons according to the QuestFrame.xml, so I just hooked them all. No idea if this is a good way to do this but it seems to be working. Lua Code:
update2: and here for the TradeSkillFrame Lua Code:
But still I wonder if this is a good way to do it. |
Quote:
Code:
local function setupTradeSkillUI() Code:
local setupFuncs = {} |
If your addon isn't doing anything until Blizzard_TradeSkillUI loads, then you should use the LoadWith tag in your TOC to tell the game to load your addon when Blizzard_TradeSkillUI does.
Code:
## LoadWith: Blizzard_TradeskillUI |
Based on the rest of the first post it appears to be a general tooltip modification, so it's handling all tooltips, not just ones coming from the tradeskill UI.
|
Not fixed on PTR, so I'm looking at implementing workarounds for this, too. Not sure if it's better, but I'm leaning towards hooking the tooltip functions instead. (GameTooltip:SetQuestItem) Then you don't need to bother with waiting for addons to load, and it should be compatible with addons that replace the default quest frame.
|
All times are GMT -6. The time now is 02:41 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI