View Single Post
09-02-06, 01:01 PM   #1
DrGonzo23
A Defias Bandit
Join Date: Sep 2006
Posts: 2
Modify ItemTooltips / GetItemInfo from Tooltip

hi there,

i'm quite new to addon coding. i'm trying to create a simple addon that adds one line (or modifies one) in an item tooltip. i know already how to modify and read the contents of a tooltip.

my goal is to add the dkp price for an item to the tooltip. the price is calculated from the itemlevel and itemtype. i've found the GetItemInfo method which should help me accomplish this task.

but my problem atm is that i don't know how to determine if the tooltip displays an item. and how to extract the itemstring (itemlink, itemid) for the GetItemInfo method.

i'd be glad if someone could give me a tip how to start doing this.

currently i only add a event handler to the GameTooltip with SetScript and read the contents with getglobal("GameTooltipTextLeft"..n).

thanks for your help =)

Last edited by DrGonzo23 : 09-02-06 at 01:03 PM. Reason: changed title to match content
  Reply With Quote