Thread Tools Display Modes
03-27-09, 09:20 AM   #1
Amra
A Defias Bandit
Join Date: Jan 2007
Posts: 3
Adding lines to tooltip

Hey

I'm quite new to coding addons and i'm trying to make an addon that adds a line to the tooltip of an item, describing the item's AP equivalent value. The calculations for the equivalence value are done and the addon works when i mouse over an item that i have equipped, have in bags or I find in the AH. But it does not add the line to the tooltip when i click on an itemlink in the chat or if I mouse over items in AtlasLoot.

I use the GameToolTip's OnShow event, and i guess it means that this isnt called when you click on an itemlink in the chat or anything else besides when mousing over the actual item.

Does anyone know how i can add this line to the tooltip, regardless of where i find the item? I've seen other addons do it but their source code has been too complex for me to find out where they do it (such as Wardrobe, ItempriceTooltip, EPGP etc).

Any help is appreciated
  Reply With Quote
03-27-09, 09:26 AM   #2
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
Have a look how I do it in QueTip.
  Reply With Quote
03-28-09, 08:54 AM   #3
Amra
A Defias Bandit
Join Date: Jan 2007
Posts: 3
Thx for the tip, I'll look into it
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Adding lines to tooltip


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off