Download
(20Kb)
Download
Updated: 12-04-12 08:07 PM
Pictures
File Info
Updated:12-04-12 08:07 PM
Created:unknown
Downloads:8,501
Favorites:41
MD5:
Categories:Bags, Bank, Inventory, ToolTip

QualityID  Popular! (More than 5000 hits)

Version: 5.1b.30
by: Anaral [More]

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

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

I've returned, for who knows how long... hopefully long enough to work out all the bugs. >.<

5.1b.30
* updated toc for Blizz patch 5.1
* rewrote the addon so at least the basic info shows
* due to issues quality coloring isn't implemented yet
* temporarily disabled the ability to add top and bottom lines
* removed function to display the item's icon on the tooltip. Tuller's Tipachu is a great addon for the icon, it includes spell icons too!

4.30.28
* Updated TOC to 40300
* Fixed hex code errors, thank you to phrozenassid for the code.
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
Optional Files (0)


Post A Reply Comment Options
Unread 11-30-11, 09:05 PM  
Anaral
A Murloc Raider
 
Anaral's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 52
Uploads: 2
Thank you phrozenassid for the fix. I've updated the main file and hopefully once it passes verification not only will your fixes be in it, but the toc will be updated properly.

I'm not playing again, yet. So if there are any further errors, please let me know and I'll see what I can do.
__________________
Report comment to moderator  
Reply With Quote
Unread 11-30-11, 07:52 PM  
phrozenassid
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 23
Uploads: 2
This is for anyone having problems with this addon in the 4.x versions of wow. To fix the weird text simply replace lines 135 to 152 with the following (you can indent it again to make it look nice):

Code:
if QIDDB.addTopLine then
frame:AddLine(" ")
end
if QIDDB.showid then
frame:AddLine( "Item ID: |c"..hex..id.."|r")
end
if QIDDB.showitemLvl then 
frame:AddLine( "Item Lvl: |c"..hex..ilvl.."|r")
end
if QIDDB.showitemType then
frame:AddLine( ""..type..": |c"..hex..subType.."|r")
end
if QIDDB.showStackCount and stackCount ~= 1 then
frame:AddLine( "Stacks in lots of |c"..hex..stackCount.."|r")
end
if QIDDB.addBotLine then
frame:AddLine(" ")
end
OR

Alternatively, here is a pastebin with the QualityID.lua file fixed for patch 4.3 that you can go download and just replace the one in your Addons folder with:
http://pastebin.com/KEAavxiS
Report comment to moderator  
Reply With Quote
Unread 07-06-11, 07:27 AM  
Olena
A Kobold Labourer

Forum posts: 0
File comments: 20
Uploads: 0
a bug

Hello.
Sinds patch 4.2 I'm getting weird letters and cifers before ItemID, Item level etc (for example here on my screen http://img97.imageshack.us/img97/941...0611151107.jpg ).
Is there any chance to fix that?

Thanks.

PS. Using last version of addon from here.
Report comment to moderator  
Reply With Quote
Unread 11-16-09, 06:04 PM  
acapela
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 241
File comments: 1313
Uploads: 5
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.
__________________
Retired author/maintainer of Aloft (the nameplate addon)
http://www.wowinterface.com/download...AloftBeta.html
-----
Zippy said it best: "All life is a BLUR of Republicans and Meat!"
Last edited by acapela : 11-16-09 at 06:12 PM.
Report comment to moderator  
Reply With Quote
Unread 06-15-09, 01:29 PM  
Katharsis
A Kobold Labourer
 
Katharsis's Avatar

Forum posts: 0
File comments: 9
Uploads: 0
Originally posted by Anaral
Thank you for the bug report.
My pleasure! Thank you for providing this nice addon
Report comment to moderator  
Reply With Quote
Unread 06-15-09, 09:17 AM  
Anaral
A Murloc Raider
 
Anaral's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 52
Uploads: 2
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.
__________________
Report comment to moderator  
Reply With Quote
Unread 06-13-09, 02:43 PM  
Katharsis
A Kobold Labourer
 
Katharsis's Avatar

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
Report comment to moderator  
Reply With Quote
Unread 05-04-09, 09:44 AM  
Anaral
A Murloc Raider
 
Anaral's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 52
Uploads: 2
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. The latest build has the AtlasLootTooltip code commented out. I apparently forgot to comment out the AL code in the WoWI copy I uploaded. This will be fixed shortly. My apologies.
__________________
Last edited by Anaral : 05-04-09 at 09:46 AM.
Report comment to moderator  
Reply With Quote
Unread 04-24-09, 04:34 PM  
metax
A Kobold Labourer

Forum posts: 0
File comments: 29
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
Report comment to moderator  
Reply With Quote
Unread 04-24-09, 11:26 AM  
Anaral
A Murloc Raider
 
Anaral's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 52
Uploads: 2
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.
__________________
Report comment to moderator  
Reply With Quote
Unread 04-24-09, 08: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-09 at 08:21 AM.
Report comment to moderator  
Reply With Quote
Unread 04-23-09, 08:32 AM  
Anaral
A Murloc Raider
 
Anaral's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 52
Uploads: 2
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.
__________________
Report comment to moderator  
Reply With Quote
Unread 04-17-09, 03:59 PM  
lewal
A Kobold Labourer

Forum posts: 0
File comments: 153
Uploads: 0
mod not hooking properly
Report comment to moderator  
Reply With Quote
Unread 04-16-09, 05:44 AM  
Valcris
A Murloc Raider
 
Valcris's Avatar

Forum posts: 4
File comments: 19
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'
Report comment to moderator  
Reply With Quote
Unread 03-11-09, 11:02 AM  
Anaral
A Murloc Raider
 
Anaral's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 52
Uploads: 2
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.
__________________
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: