mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
dont need SetHyperlink hook
This commit is contained in:
@@ -54,19 +54,6 @@ end
|
|||||||
|
|
||||||
pfUI.api.libtooltip = libtooltip
|
pfUI.api.libtooltip = libtooltip
|
||||||
|
|
||||||
-- setup item hooks
|
|
||||||
local pfHookSetHyperlink = GameTooltip.SetHyperlink
|
|
||||||
function GameTooltip.SetHyperlink(self, arg1)
|
|
||||||
if arg1 then
|
|
||||||
local _, _, linktype = string.find(arg1, "^(.-):(.+)$")
|
|
||||||
if linktype == "item" then
|
|
||||||
libtooltip.itemLink = arg1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return pfHookSetHyperlink(self, arg1)
|
|
||||||
end
|
|
||||||
|
|
||||||
hooksecurefunc(GameTooltip, "SetBagItem", function(self, container, slot)
|
hooksecurefunc(GameTooltip, "SetBagItem", function(self, container, slot)
|
||||||
_, libtooltip.itemCount = GetContainerItemInfo(container, slot)
|
_, libtooltip.itemCount = GetContainerItemInfo(container, slot)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user