Mercurial > wow > inventory
view ItemCountAddons/ItemCount.lua @ 52:ce7b361f6e48
Added tag v0.1.11-BETA for changeset 55515004032b
author | Zerotorescue |
---|---|
date | Sat, 18 Dec 2010 00:23:35 +0100 |
parents | 9607b3251655 |
children | 03c0610e9c1e |
line wrap: on
line source
do local function GetTotalCount(itemId) return ICGetItemCountTotal(itemId) or -1; end local function GetCharacterCount(itemId) return ICGetItemCountCharacter(itemId) or -1; end local function IsEnabled() return (ICGetItemCountTotal and ICGetItemCountCharacter); end local function OnSelect() local addonName = "|r|cfffed000ItemCount|r|cffff6600"; print("|cffff6600Note: " .. addonName .. " can't record mailbox item data and thus this will not be included in any item counts.|r"); end IMRegisterItemCountAddon("ItemCount", GetTotalCount, GetCharacterCount, IsEnabled, OnSelect); end