View Single Post
01-27-13, 12:44 AM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Code:
local function AddInfo(self)
	local name, link = self:GetItem()
	if not link then return end

	local name, link, rarity, level, minLevel, type, subType, stackCount, equipLoc, texture, sellPrice = GetItemInfo(link)

	if type then
		self:AddDoubleLine("Item Type:", type)
	end
	if subType then
		self:AddDoubleLine("Item Subtype:", subType)
	end
	if stackCount then
		self:AddDoubleLine("Stack Count:", stackCount)
	end

	self:Show()
end

GameTooltip:HookScript("OnTooltipSetItem", AddInfo)
ItemRefTooltip:HookScript("OnTooltipSetItem", AddInfo)
If you need help turning the above code into an addon, copy and paste it into this page:
http://addon.ziuo.net/
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote