HandyNotes: Mechagon & Nazjatar

HandyNotes: Mechagon & Nazjatar

875k Downloads

TooltipUtil.SurfaceArgs error (CurseForge)

Ioney opened this issue ยท 0 comments

commented

from netnusa: https://legacy.curseforge.com/wow/addons/handynotes-dragonflight?comment=159

According to https://wowpedia.fandom.com/wiki/Patch_10.1.0/API_changes, TooltipUtil.SurfaceArgs() is not needed anymore.

if name == nil then
name = UNKNOWN
local tooltipData = C_TooltipInfo.GetHyperlink(link)
if tooltipData then
TooltipUtil.SurfaceArgs(tooltipData)
local line = tooltipData.lines and tooltipData.lines[1]
if line then
TooltipUtil.SurfaceArgs(line)
name = line.leftText or UNKNOWN
end
end
if name == UNKNOWN then
ns.Debug('NameResolver returned UNKNOWN')
else
self.cache[link] = name
end
end
return name