Category: ToolTip
Addon Information
Works with 3.2
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.20.27
Date:
10-19-2009 01:35 PM
Size:
9.53 Kb
Downloads:
3,939
Favorites:
43
MD5:
Pictures
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. It is embedded into all possible tooltips, from Auctioneer to AtlasLoot.

QID Commands:
/qualityid or /qid displays the full list of commands:
  • /qid {toggle|on|off} -- enables or disable all info
  • /qid id -- toggles the itemid
  • /qid ilvl -- toggles the item-level
  • /qid icon --toggle the icon
  • /qid stack -- toggles the stack count
  • /qid itemtype -- toggles the type: subtype
  • /qid topline - toggles an extra line above QID's info
  • /qid botline - toggles an extra line below QID's info

Any questions, comments, or suggestions please post them here in the comments section.

This will most likely be the last update. Other parts of the virtual world now pull me towards them. So long, and thanks for all the fish!
  Change Log - QualityID
3.20.27
* Updated TOC to 32000 for real this time... <<.<<
3.10.25
* Updated TOC to 32000

--3.10.24
* commented out the addition of displaying qid's info in the AtlasLootTooltip as it was causing errors for those that don't use AL.
* changed the slashcommands for adding lines before and after QID's info from toptooltip and bottooltip to topline and botline.

--3.10.21
* implemented options to add a line before and/or after QIDs info. These are not set by default. Use /qid ingame for options.
* cleaned up code
* fixed info for recipes. No more double info in recipe item tooltips! Yay! <--Special thanks to jnwhiteh for helping me with this one.
* corrected my poor coding by actually hooking into AtlasLoot's tooltip instead of replacing the function.

--3.05.20
-Added revision line for CurseForge
-added options to disable item level and itemID
-added slash commands to match

--3.05.18
*fixed savedvariables not saving between sessions.
*further fixed the itemType bug (hopefully it's finally squashed).

--3.05 r16
*fixed quality error
*changed Type to itemType

--3.05 r14 & 15:
* fixed stackCount error
* Cleaned up notes in .lua
* Changed Toc info

--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
3.10.25
10kB
Anaral
08-06-2009 11:13 PM
3.10.24
10kB
Anaral
05-04-2009 01:19 PM
3.10.21
10kB
Anaral
04-15-2009 02:32 PM
  Comments - QualityID
Post A Reply Comment Options
Old 11-16-2009, 07:04 PM  
acapela
A Flamescale Wyrmkin
Interface Author - Click to view interfaces

Forum posts: 134
File comments: 621
Uploads: 3
Quote:
Originally posted by Anaral
Noooo! I thought I had squashed that bug once and for all awhile ago. I'll look into it and see what I need to do to get it to not duplicate. Thank you for the bug report.
i think i have been able to fix this issue, based on the version (3.02.28) of the addon available at Curse. this seems to be slightly newer than the final version here at WoWInterface. i would have posted all of this there, except i find the Curse website (forums, addon comments, online help... if it even exists, etc) nearly impossible to use.

anyway, there seems to be a lot of what amounts to "redundant hooking" of tooltips, which results in driving the entire chain of hooks for the main "GameTooltiop" repeatedly (i.e. a total of 4 times).

i changed two sections of code in QualityID.lua. these are not very well tested, but they had an immediate (and beneficial) impact on my tooltips. i run a variety of informational tooltip addons like this, and i don't see any obvious artifacts.

change lines 168-178, from:

Code:
		if  link and GetItemInfo(link) then
			--make sure the icon does not display twice on recipies, which fire OnTooltipSetItem twice
			local text = _G[self:GetName() .. 'TextLeft1']
			if QIDDB.showIcon and text and text:GetText():sub(1, 2) ~= '|T' then 
				text:SetFormattedText('|T%s:%d|t%s', GetItemIcon(link), 36, text:GetText())
			end
		end

		if set then
			return set(self, ...)
		end
to (lines 168-178):

Code:
		if  link and GetItemInfo(link) then
			--make sure the icon does not display twice on recipies, which fire OnTooltipSetItem twice
			local text = _G[self:GetName() .. 'TextLeft1']
			if QIDDB.showIcon and text and text:GetText():sub(1, 2) ~= '|T' then 
				text:SetFormattedText('|T%s:%d|t%s', GetItemIcon(link), 36, text:GetText())

				if set then
					return set(self, ...)
				end
			end
		end
change lines 190-195, from:

Code:
for _,frame in pairs{GameTooltip, ItemRefTooltip, ShoppingTooltip1, ShoppingTooltip2} do
	origs[frame] = frame:GetScript("OnTooltipSetItem")
	GameTooltip:HookScript("OnTooltipSetItem", OnTooltipSetItem)
	GameTooltip:HookScript("OnTooltipCleared", OnTooltipCleared)
	frame:SetScript("OnTooltipSetItem", OnTooltipSetItem)
end
to (lines 190-194, i.e. one fewer line):

Code:
for _,frame in pairs{GameTooltip, ItemRefTooltip, ShoppingTooltip1, ShoppingTooltip2} do
	origs[frame] = frame:GetScript("OnTooltipSetItem")
	frame:SetScript("OnTooltipSetItem", OnTooltipSetItem)
end
GameTooltip:HookScript("OnTooltipCleared", OnTooltipCleared)
hope that helps.
__________________
Current author/maintainer of Aloft (the nameplate addon)
http://www.wowinterface.com/download...AloftBeta.html


-----
Qui a coupé le fromage, we abstainia! Oy, Macadamia! <UUURP>

Last edited by acapela : 11-16-2009 at 07:12 PM.
acapela is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-15-2009, 03:29 PM  
Katharsis
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Quote:
Originally posted by Anaral
Thank you for the bug report.
My pleasure! Thank you for providing this nice addon
Katharsis is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-15-2009, 11:17 AM  
Anaral
A Murloc Raider
 
Anaral's Avatar
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 46
Uploads: 1
Quote:
Originally posted by Katharsis
Hi, i love your addon but when I use it together with Fizzwidgets Disenchant Predictor the tooltip of this addon shows up about 4 times... Very annoying
Noooo! I thought I had squashed that bug once and for all awhile ago. I'll look into it and see what I need to do to get it to not duplicate. Thank you for the bug report.
__________________

Author of: QualityID
Anaral is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-13-2009, 04:43 PM  
Katharsis
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Hi, i love your addon but when I use it together with Fizzwidgets Disenchant Predictor the tooltip of this addon shows up about 4 times... Very annoying
Katharsis is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-04-2009, 11:44 AM  
Anaral
A Murloc Raider
 
Anaral's Avatar
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 46
Uploads: 1
Quote:
Originally posted by metax
Maybe this will help you with bagnon bug

Error: attempt to index global 'AtlasLootTooltip' (a nil value)
File: Interface\AddOns\QualityID\QualityID.lua
Line: 197
Count: 1
This isn't a bagnon issue. That error is because you don't have AtlasLoot. [strike]The latest build has the AtlasLootTooltip code commented out.[/strike] I apparently forgot to comment out the AL code in the WoWI copy I uploaded. This will be fixed shortly. My apologies.
__________________

Author of: QualityID

Last edited by Anaral : 05-04-2009 at 11:46 AM.
Anaral is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-24-2009, 06:34 PM  
metax
A Kobold Labourer

Forum posts: 0
File comments: 28
Uploads: 0
Maybe this will help you with bagnon bug

Error: attempt to index global 'AtlasLootTooltip' (a nil value)
File: Interface\AddOns\QualityID\QualityID.lua
Line: 197
Count: 1
metax is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-24-2009, 01:26 PM  
Anaral
A Murloc Raider
 
Anaral's Avatar
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 46
Uploads: 1
Quote:
Originally posted by Vashar
Does not play well with Bagnon Forever (part of Combuctor) tooltips. It makes Bagnon repeat its tooltip 4 times. I only tried out this addon to see the icon and ilevel of items in the tooltip. This bug bothers me enough to immediately uninstall qid.

I did not have any issue with RatingBuster, which I might just now reinstall because no other ilevel tooltip mods seem to work.
I'm looking into this, though I have no idea why QID would cause BF to quad its own info.
__________________

Author of: QualityID
Anaral is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-24-2009, 10:19 AM  
Vashar
A Defias Bandit

Forum posts: 3
File comments: 8
Uploads: 0
Does not play well with Bagnon Forever (part of Combuctor) tooltips. It makes Bagnon repeat its tooltip 4 times. I only tried out this addon to see the icon and ilevel of items in the tooltip. This bug bothers me enough to immediately uninstall qid.

I did not have any issue with RatingBuster, which I might just now reinstall because no other ilevel tooltip mods seem to work.

Last edited by Vashar : 04-24-2009 at 10:21 AM.
Vashar is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-23-2009, 10:32 AM  
Anaral
A Murloc Raider
 
Anaral's Avatar
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 46
Uploads: 1
Quote:
Originally posted by Valcris
From Bugsack anytime i log in:

[2009/04/16 13:22:32-1694-x1]: QualityID-3.10.@project-revision@\QualityID.lua:197: attempt to index global 'AtlasLootTooltip' (a nil value)
My apologies, I'll fix it and update shortly. It just means that you don't have Atlas Loot. The addon should still be working otherwise.
__________________

Author of: QualityID
Anaral is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-17-2009, 05:59 PM  
lewal
A Kobold Labourer

Forum posts: 0
File comments: 129
Uploads: 0
mod not hooking properly
lewal is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-16-2009, 07:44 AM  
Valcris
A Murloc Raider
 
Valcris's Avatar

Forum posts: 4
File comments: 20
Uploads: 0
From Bugsack anytime i log in:

[2009/04/16 13:22:32-1694-x1]: QualityID-3.10.@project-revision@\QualityID.lua:197: attempt to index global 'AtlasLootTooltip' (a nil value)
__________________
'Ex Tenebris oritur Lux'
Valcris is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-11-2009, 01:02 PM  
Anaral
A Murloc Raider
 
Anaral's Avatar
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 46
Uploads: 1
Quote:
Originally posted by Dawn
While being in Thousand Winter, I noticed that QualityID shows a lua error, when you mousesover some of the new "bound to account" items. It seems like it tries to get an ilvl, but can't.
I think I've finally nipped this bug in butt. I'll probably release it after I do some more testing, to make sure it's really gone.

Thank you Ragnarok for leading me in the right direction.
__________________

Author of: QualityID
Anaral is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-07-2009, 11:00 PM  
ragnarok00
A Kobold Labourer

Forum posts: 0
File comments: 40
Uploads: 0
Quote:
Originally posted by Anaral
Yes, this has been the bane of my experience with lua. It happens because the item isn't in your cache. I will figure this out... one day.
http://www.wowwiki.com/API_GetItemQualityColor
Use this API instead of ITEM_QUALITY_COLORS
which currently doesn't work..
ragnarok00 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 02-27-2009, 12:31 PM  
Anaral
A Murloc Raider
 
Anaral's Avatar
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 46
Uploads: 1
Quote:
Originally posted by Dawn
While being in Thousand Winter, I noticed that QualityID shows a lua error, when you mousesover some of the new "bound to account" items. It seems like it tries to get an ilvl, but can't.
Yes, this has been the bane of my experience with lua. It happens because the item isn't in your cache. I will figure this out... one day.
__________________

Author of: QualityID
Anaral is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 02-26-2009, 10:49 PM  
Dawn
A Chromatic Dragonspawn
 
Dawn's Avatar
Interface Author - Click to view interfaces

Forum posts: 183
File comments: 403
Uploads: 14
While being in Thousand Winter, I noticed that QualityID shows a lua error, when you mousesover some of the new "bound to account" items. It seems like it tries to get an ilvl, but can't.
Dawn is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




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


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.