view ItemCountAddons/Altoholic.lua @ 59:a4b564219b4d v0.1.13-BETA

Fixed the date in the changelog.
author Zerotorescue
date Tue, 21 Dec 2010 14:29:46 +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