Yeah, I real clever tricky thing I have learnd from @Garkin.
You could start with:
Lua Code:
local function TooltipHook(tooltipControl, method, linkFunc)
local origMethod = tooltipControl[method]
tooltipControl[method] = function(self, ...)
origMethod(self, ...)
d(linkFunc(...))
end
end
As you can see in my RuneTooltip code, each tooltip method is hooked given the corresponding function to convert the given parameters to an itemLink. To understand that, you have to look at the method and the corresponding function signatures within the documentation:
https://github.com/esoui/esoui/blob/...umentation.txt