annotate ItemCountAddons/Altoholic.lua @ 28:3a58dde5516a v0.1.5-BETA

Changelog update.
author Zerotorescue
date Thu, 28 Oct 2010 19:33:05 +0200
parents 8f5c02113c5c
children 9607b3251655
rev   line source
Zerotorescue@13 1 do
Zerotorescue@13 2
Zerotorescue@17 3 local function GetTotalCount(itemId)
Zerotorescue@13 4 return Altoholic:GetItemCount(itemId) or -1;
Zerotorescue@13 5 end
Zerotorescue@13 6
Zerotorescue@13 7 local function IsEnabled()
Zerotorescue@13 8 return (Altoholic and Altoholic.GetItemCount);
Zerotorescue@13 9 end
Zerotorescue@13 10
Zerotorescue@17 11 IMRegisterItemCountAddon("Altoholic", GetTotalCount, nil, IsEnabled);
Zerotorescue@13 12
Zerotorescue@13 13 end