View Single Post
01-20-20, 09:56 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
According to LibQtip, AddLine returns a number so at 142:
Code:
line = tooltip:AddLine(npc.name, npc.item, format("%d/%d", count, 5))
then at 144 you:

Code:
tooltip:SetScript(line, "OnMouseUp", UseTomTom, npc)
QTips prototype for it SetScript function is:
Code:
function tipPrototype:SetScript(scriptType, handler)
    RawSetScript(self, scriptType, handler)
    ...
I'm not sure line as the first parameter of the SetScript call is correct.
Code:
tooltip:SetScript("OnMouseUp", UseTomTom)
I don't know LibQTip so maybe I'm missing something.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 01-20-20 at 10:14 PM.
  Reply With Quote