TooltipItemIcon 1.5

Adds the appropriate item icon to various tooltips.

Frame mode adds the icon as a small extra frame to the side of the tooltip. The icon frame can be moved to different locations around the tooltip.

Inside mode adds the icon inside the tooltip, in the top right corner.

Background mode uses the icon as a background for the tooltip.

Only works for Items with the default tooltips (some tooltips created by other AddOns can show icons for spells too)

Supports LinkWrangler (version 1.6 or later), and compatible with several other Tooltip AddOns.



Version history:

1.5
- Release version: code cleanup and tweaks
- When used with some other tooltip addons, can display spell icons

1.45
- Slash command system changed considerably: 'location' command replaced, 'gametooltip' and 'compare' commands work differently.
- Changed saved variables due to above changes - several settings will need to be re-set

1.44
- Slash command to place the icon frame at different locations around the tooltip. See commands.txt
- Some changes to the functions that other AddOns use to hook TooltipItemIcon (changes were required to make the new slash command work). See developer.txt

1.43
- Support for GameTooltip and the 2 comparison tooltips (ShoppingTooltip1 & 2)
- Slash commands to disable gametooltip and compare tooltip icons if preferred

1.42
- Updated TOC for WoW 2.4
- Almost completely re-written:
- Recoded to use the new GetItemIcon function provided by WoW 2.4
- Different ways of displaying the icon - called 'modes'
- slash command handler added - to change mode
- Saved Variables added - to save the current mode settings
- Changed the way the frames are created - this reduces the number of globals and allows me to do without the .xml file
- New exported function: TooltipItemIcon_HookFrame
- Changed the hooking method for ItemRefTooltip - should prevent incorrect icons showing up following changes in the 2.4 patch (uses the same method as TooltipItemIcon_HookFrame)


1.41
- Coded to accept TooltipItemIcon_Display (frame) - i.e. if second paramater is nil, defaults to hide icon frame
- Other minor tweaks

1.4
- Update for WoW 2.3
- Always hides icon for crafting recipes for ItemRefTooltip

1.3
- Update for WoW 2.2

1.2
- Second fix for ItemRef tooltip icon not always showing the correct icon

1.11
- Fix for problem when ItemRefTooltip and LinkWrangler windows open at same time

1.1
- Rewrite for compatability with LinkWrangler 1.6

1.0.4
- Update and fixes for WoW 2.0 by Amavana

Based on a version by Freddy
http://wow.curse.com/downloads/details/2173/