*** NOTE! You no longer need to download this file, as the latest version of Color Blind 4 has this code in it! ***
The uploaded zip file has a single file in it, ColorBlind4.lua. Just replace the existing ColorBlind4.lua file with this one and you're good to go.
Please report any errors/problems here, and not on the main ColorBlind4 page.
Changes done...
Added support for displaying quality/rarity via the tooltip for all windows.
Removed the local defining of the rarity/quality types, and instead used the WoW global variables. This means that this code should now be region neutral!
Dev: Added function getTopFrameMouseIsIn()
Dev: Added function cb_debug(desc, value)
Dev: Added function round(num,idp)
NOTE! The old code, where various api calls were made depending on if the window was (for example) an Auction House window vs. a Trade windoow vs. the Bank window, has been removed. The replacement gets the existing color of the tooltip text then matches back to the quality/rarity level based on existing values inside of WoW. This means that the tooltip for all items regardless of where they are being displayed at will show the quality/rarity information. This means the replacement code is allot cleaner/simpler to implement and should work for all items! Please upgrade to this version of you have any of the previous versions installed.
I've uploaded a new version in file ColorBlind4_lua7.zip, and the old code has been removed and new (simpler/cleaner) code has been added that determines the rarity/quality information based on the existing tooltip text color, instead of trying to figure out what window is open then making specific api calls for the type of window opened and hope you get the right information back, etc.
If you've downloaded a previous version please download the new file and unarchive into your ColorBlind4 subfolder.
Last edited by Cosmic Cleric : 12-12-2007 at 05:24 PM.