WarpDeplete

WarpDeplete

432k Downloads

Tooltip error

Meebsy opened this issue ยท 4 comments

commented

I run WarpDeplete along with Kaelic Tracker and since the Pre-patch phase 2 WarpDeplete has been throwing the following error and every time I log in or reload the UI WarpDeplete has been stuck showing on screen till I go into the WarpDeplete options and use the Demo mode to hide it again.

Interface/AddOns/WarpDeplete/Events.lua:269: GameTooltip doesn't have a "OnTooltipSetUnit" script [string "=[C]"]: in functionHookScript'
[string "@Interface/AddOns/WarpDeplete/Events.lua"]:269: in function RegisterGlobalEvents' [string "@Interface/AddOns/WarpDeplete/Core.lua"]:89: in function <Interface/AddOns/WarpDeplete/Core.lua:78> [string "=[C]"]: ? [string "@Interface/AddOns/!KalielsTracker/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...s/!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:61> [string "@Interface/AddOns/!KalielsTracker/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:523: in function EnableAddon'
[string "@Interface/AddOns/!KalielsTracker/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:626: in function <...s/!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:611>
[string "=[C]"]: in function LoadAddOn' [string "@Interface/FrameXML/UIParent.lua"]:536: in function UIParentLoadAddOn'
[string "@Interface/AddOns/Rarity/Core/Collections.lua"]:63: in function ScanToys' [string "@Interface/AddOns/Rarity/Core/Collections.lua"]:283: in function ScanExistingItems'
[string "@Interface/AddOns/Rarity/Core.lua"]:174: in function DoEnable' [string "@Interface/AddOns/Rarity/Core.lua"]:150: in function <Interface/AddOns/Rarity/Core.lua:149> [string "=[C]"]: ? [string "@Interface/AddOns/!KalielsTracker/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...s/!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:61> [string "@Interface/AddOns/!KalielsTracker/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:523: in function EnableAddon'
[string "@Interface/AddOns/!KalielsTracker/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:626: in function <...s/!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:611>`

https://i.imgur.com/4GlMWo6.png
Linked image shows you what I mean with the WarpDeplete UI showing on login and reload of UIs.

commented

I would recommend using TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Unit,WarpDeplete.DisplayCountInTooltip)

https://github.com/Gethe/wow-ui-source/blob/live/Interface/SharedXML/Tooltip/TooltipDataHandler.lua#L192

commented

Replacing GameTooltip:HookScript("OnTooltipSetUnit", WarpDeplete.DisplayCountInTooltip) with TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Unit,WarpDeplete.DisplayCountInTooltip) at Line 269 fixes the error and still provides the same functionality.

commented

Duplicate of #21 I think. A PR for this is already open and will land soon.

commented

Thanks @happenslol!