Thread Tools Display Modes
08-02-07, 11:34 PM   #1
hzh003
A Deviate Faerie Dragon
Join Date: May 2007
Posts: 17
Need Help on ItemRefTooltip

Hey there.
I am trying to write a small addon for fun. What i am tryint to accomplish is add some new text in the tooltip appear when u click a item click. I am trying tot change the color ( purple for epic, blue for rare, green for uncommon, etc) and words inside the box.
All i can trace back is that function
ItemRefTooltip:SetHyperlink(link); inside the ItemRef.lua. It seems to be this function magically retriieve all the items information and displayed it on the item tooltip.
ANyway knows where this function is defined or how to achieve my goal?

Thanks a lot
  Reply With Quote
08-02-07, 11:52 PM   #2
Siz
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 52
I would recommend reviewing the code for this addon by Haste: Chippu
  Reply With Quote
08-03-07, 01:11 AM   #3
hzh003
A Deviate Faerie Dragon
Join Date: May 2007
Posts: 17
Thanks. How do I retrive the item's text? Like the +5 stamin, +5 str etc?
Or the enchant information?
I can get item's other information pretty easily.

item_name = select(1, GetItemInfo(item))
item_rarity = select(3, GetItemInfo(item))
item_level = select(4, GetItemInfo(item))
item_minlevel = select(5, GetItemInfo(item))
itemtype = select(6, GetItemInfo(item))
itemsubtype = select(7, GetItemInfo(item))
itemstackcount = select(8, GetItemInfo(item))
itemtext = select(10, GetItemInfo(item))
  Reply With Quote
08-03-07, 11:32 AM   #4
Layrajha
A Frostmaul Preserver
 
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
Haste is pro
  Reply With Quote
08-04-07, 12:45 AM   #5
Siz
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 52
http://www.wowwiki.com/UIOBJECT_GameTooltip
  Reply With Quote
08-04-07, 01:24 PM   #6
Layrajha
A Frostmaul Preserver
 
Layrajha's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 275
Ah, there it is I'm quite disappointed that my research didn't succeed, but it's simply cause they shortcut the Set methods with "SetX"
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Need Help on ItemRefTooltip


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