Get tooltip of recipes creating an item that teaches you something
Since OnTooltipSetItem does no longer exist, we have to use TooltipDataProcessor.AddTooltipPostCall.
I am running into the following problem, when trying to read the tooltip of recipes that are themselves creating items which that teach you something (e.g. https://www.wowhead.com/item=67308). With AddTooltipPostCall I only get the tooltip of the usable item which the recipe creates, but not of the recipe itself. To reproduce, use this code and mouse-hover over the created frame to show the tooltip: Lua Code:
Any ideas how to handle this? When OnTooltipSetItem still existed, we used to get two OnTooltipSetItem when the tooltip was created: one for the recipe and one for the create item. But now it seems we only get the equivalent of the latter. |
I solved it myself. Turns out that for recipes, which create usable items, the hyperlink returned by GetItem() does not match the returned id. The hyperlink is of the created item but the id is of the recipe. So when I use the returned id I am good.
Lua Code:
|
All times are GMT -6. The time now is 05:41 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI