Addon Info.
Change Log
Archived (2)
Comments (7)
  Category: ToolTip
Addon Information
Works with WoTLK
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Anaral's Portal Bug Reports Feature Requests
Author:
Version:
3.00.12
Date:
08-31-2008 07:31 PM
Size:
9.10 Kb
Downloads:
780
Favorites:
13
MD5:
Pictures
QID Simple
Click to enlarge
All the info one needs and the commands to toggle them.
QualityID
This is a very minimalistic addon that adds an item's basic info into the tooltip, in the color of the item's quality. The info includes an item's; icon, id, item level, stack count, and type with subtype.

Commands:
/qualityid or /qid displays a full list of commands:
  • /qid {toggle|on|off} -- enables or disable all info
  • /qid icon --toggle the icon
  • /qid stack -- toggles the stack count
  • /qid type -- toggles the type: subtype

Any questions, comments, or suggestions please post them here in the comments section.
  Change Log - QualityID
--3.05 r13:
* Added Saved Variables

--2.05.00.12:
* Added more info; stack count, type: subtype and icon.
* Added slashcommand toggles.
* Need to add saved variables, until then user options aren't saved between sessions.

--1.00.10: Added GNUv2GPL.txt and edited toc and lua accordingly
--1.0.0 r8: Rewrite of coding. Removed TipHookerLib dependency, made tooltip a double line.
--0.0.6: Just catching upto the svn. No changes.
--0.0.3: *whistles innocently*
--0.0.2: Cleaned up unneeded code, and a file.
--0.0.1: Original upload
  Archived Versions - QualityID
File Name
Version
Size
Author
Date
2.05.01.wowi:re
9kB
Anaral
08-24-2008 01:37 PM
1.00.10
8kB
Anaral
08-16-2008 04:52 PM
  Comments - QualityID
Post A Reply
Author Comments Comment Options
Old 11-21-2008, 08:20 PM  
Spellshaper
A Defias Bandit
 
Spellshaper's Avatar
Interface Author - Click to view interfaces

Forum posts: 3
File comments: 32
Uploads: 2
I get an error on line 94 sometimes due to stackCount being nil. Adding a check for nil fixed it.
__________________
"We shaman don't command the magic we wield. As mages and warlocks strain and sweat to produce a tiny flame, I ask for the elements to lend me their strength."
Spellshaper is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-10-2008, 10:40 AM  
Anaral
A Kobold Labourer
 
Anaral's Avatar
Interface Author - Click to view interfaces

Forum posts: 1
File comments: 18
Uploads: 1
Caellien, I believe the error is occuring due to tekCompares way of calling Hyperlinks. I'm pretty sure this means I need to add support for compare item addons like tekCompare. The issue doesn't stop either addon from doing its thing. So until I can figure out how to add support, I apologize for the inconvenience of the error pop-ups.

Thank you for bringing it to my attention.
__________________

Author of: QualityID
Anaral is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-06-2008, 12:02 PM  
Caellian
A Wyrmkin Dreamwalker
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 56
File comments: 301
Uploads: 1
Getting this sometimes

Code:
QualityID.lua:23: attempt to index field '?' (a nil value)
Count: 1

Call Stack:
[C]: ?
QualityID.lua:23: in function 
QualityID.lua:16>
(tail call): ?
(tail call): ?
[C]: ?
[C]: in function `SetHyperlink'
Interface\AddOns\tekKompare\HoverTips.lua:9: in function <Interface\AddOns\tekKompare\HoverTips.lua:6>
__________________
Caellian is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-05-2008, 09:11 AM  
Anaral
A Kobold Labourer
 
Anaral's Avatar
Interface Author - Click to view interfaces

Forum posts: 1
File comments: 18
Uploads: 1
Quote:
As for why your getting double hook calls, I have no idea, it works fine for me. Perhaps you have another addon handling their hooks incorrectly?
The double info in regular items was due to my xml file, which for the new format, is not needed.
__________________

Author of: QualityID
Anaral is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-31-2008, 02:26 PM  
Tekkub
Featured Artist
 
Tekkub's Avatar
Featured Addon Author

Forum posts: 385
File comments: 271
Uploads: 78
You can pull the quality color directly out of the link string. Recipes will in fact call the handler twice, because there are two items set to the tip. The fact that GetItem returns the same value both times is a Blizzy bug that's been around for some time. As for why your getting double hook calls, I have no idea, it works fine for me. Perhaps you have another addon handling their hooks incorrectly?
Tekkub is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-30-2008, 08:33 PM  
Anaral
A Kobold Labourer
 
Anaral's Avatar
Interface Author - Click to view interfaces

Forum posts: 1
File comments: 18
Uploads: 1
Thank you for the info.

Much of the unneeded code is stuff I was messing with, which I just hadn't removed. Bad addon author, I know. I'll clean it up and update here tomorrow morning.

After playing around with the code you supplied and trying to make it work. I can't seem to get the font to color by the item's quality AND more annoyingly, the info is multiplied (twice on items, four times on recipes). I'll continue messing with both yours and some other test code I've written.
__________________

Author of: QualityID

Last edited by Anaral : 07-30-2008 at 09:35 PM.
Anaral is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-30-2008, 03:29 PM  
Tekkub
Featured Artist
 
Tekkub's Avatar
Featured Addon Author

Forum posts: 385
File comments: 271
Uploads: 78
TipHooker is not needed at all here. There's also a lot of unneeded code in your addon. You could slim this whole thing to a few lines of code:

Code:
local origs = {}

local function OnTooltipSetItem(frame, ...)
	local name, link = frame:GetItem()
	if link then
		local id = tonumber(link:match("item:(%d+):"))
		local _, _, _, ilvl = GetItemInfo(id)
		frame:AddDoubleLine("ID:" , id)
		frame:AddDoubleLine("iLevel:" , ilvl)
	end
	if origs[frame] then return origs[frame](frame, ...) end
end

for _,frame in pairs{GameTooltip, ItemRefTooltip, ShoppingTooltip1, ShoppingTooltip2} do
	origs[frame] = frame:GetScript("OnTooltipSetItem")
	frame:SetScript("OnTooltipSetItem", OnTooltipSetItem)
end
Tekkub is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:



The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOUI | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


MMOInterface.com Copyright ©2008
World of Warcraft is a registered Trademark of Blizzard Entertainment.
vBulletin - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.