parnic / LibDogTag-Unit-3.0

2 stars 1 forks source link

Add support for 10.0.2 tooltip APIs #9

Closed parnic closed 1 year ago

parnic commented 1 year ago

Functions like tooltip:SetUnit no longer exist, so this uses the new TooltipInfo APIs to extract the same information.

parnic commented 1 year ago

@ascott18 I don't know much about these tooltip changes, but this seems to work? The Beta server I'm on doesn't have player guilds, but some of the NPCs in Stormwind do have guilds, so I verified that FigureNPCGuild() is working with these changes. I'd like a second opinion, though.

https://wowpedia.fandom.com/wiki/Patch_10.0.2/API_changes#Tooltip_Changes

ascott18 commented 1 year ago

Looks good to me. Wish they'd just add normal functions that return these things...