I'm using LibTipHooker-1.1 in my addon to provide the hooks for item tooltips, but I'm having a bit of a problem adding lines to these tooltips. Here's basically what I'm trying to do:
In the Initialization:
TipHooker:Hook(Addon.ModifyItemTooltip, "item")
function Addon:ModifyItemTooltip(tooltip, name, link)
The problem is when I call "tooltip:AddLine(v)" it gives me an error:
...attempt to call method 'AddLine' (a nil value)
My temporary solution was instead of "tooltip:AddLine(v)" I put "GameTooltip:AddLine(v)", but that only partially works and can cause some problems. One of the biggest is that it will not modify a ItemRefTooltip even though its being hooked.
I'm not exactly sure if the problem is how I'm using LibTipHooker-1.1 or not. If there's anyone who can help it would be greatly appreciated.
In the Initialization:
The problem is when I call "tooltip:AddLine(v)" it gives me an error:
My temporary solution was instead of "tooltip:AddLine(v)" I put "GameTooltip:AddLine(v)", but that only partially works and can cause some problems. One of the biggest is that it will not modify a ItemRefTooltip even though its being hooked.
I'm not exactly sure if the problem is how I'm using LibTipHooker-1.1 or not. If there's anyone who can help it would be greatly appreciated.
The implied self from the : syntax messes with you there.
:O!! Omg thank you this was the problem >.>. Wow so simple too.