Lua Code:
local function DERP_OnLinkClicked1(link, button, text, color, linkType, ...)
-- do your additional stuff
d("DERP_OnLinkClicked1 on "..tostring(linkType))
end
local function DERP_OnLinkClicked2(link, button, text, color, linkType, ...)
-- do your additional stuff both will be called
d("DERP_OnLinkClicked2 on "..tostring(linkType))
end
LINK_HANDLER:RegisterCallback(LINK_HANDLER.LINK_CLICKED_EVENT, DERP_OnLinkClicked1)
LINK_HANDLER:RegisterCallback(LINK_HANDLER.LINK_CLICKED_EVENT, DERP_OnLinkClicked2)
No need to overwrite, hook or detour anything. Both will get called in addition
to the unmodified native code, no matter where you click on the Link.
Cheers!