view ItemCountAddons/Altoholic.lua @ 72:7ca83ad9d67a

Color coding for item quantities in the summary now defaults to white when none of the selected colors in the config fall within range.
author Zerotorescue
date Thu, 23 Dec 2010 18:33:05 +0100
parents 06fee4208bf2
children
line wrap: on
line source
do
	
	local function GetTotalCount(itemId)
		return Altoholic:GetItemCount(itemId) or -1;
	end
	
	local function IsEnabled()
		return (Altoholic and Altoholic.GetItemCount);
	end
	
	local function OnSelect()
		local addonName = "|r|cfffed000Altoholic|r|cffff6600";
		
		print("|cffff6600Note: " .. addonName .. " can not provide local item data.|r");
	end
	
	IMRegisterItemCountAddon("Altoholic", GetTotalCount, nil, IsEnabled, OnSelect);
	
end