View Single Post
10-30-16, 07:46 AM   #30
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Originally Posted by Phanx View Post
Replace:

Code:
local function OnHyperlinkLeave(frame, link, text)
with:

Code:
local function OnHyperlinkLeave(...)
    return print("OnHyperlinkLeave", ...)
Mouse over a link, then off, then post the printout you get in the chat frame.
That code did not work but I replaced it with this:

Lua Code:
  1. local function OnHyperlinkLeave(...)
  2.             if true then --debug
  3.                 return print("OnHyperlinkLeave", ...)
  4.             end
  5.             if normal == true then
  6.                 GameTooltip:Hide()
  7.             elseif normal == false then
  8.                 -- Uses a special tooltip, just let the default function handle it.
  9.                 SetItemRef(link, text, "LeftButton", frame)
  10.             end
  11.         end

and got this chat printout:
Code:
OnHyperlinkLeave table: 00000165D37D7F7
reloaded UI and disabled all addons new chat print:
Code:
OnHyperlinkLeave table: 00000165D35AEEA0
Tested it and it changes ever time.
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________

Last edited by Tonyleila : 10-30-16 at 07:51 AM.
  Reply With Quote