Mercurial > wow > inventory
annotate ItemCountAddons/ItemCount.lua @ 38:b1df62ad61fc
Added tag v0.1.8-BETA for changeset 3dd303f1d9cc
author | Zerotorescue |
---|---|
date | Sat, 20 Nov 2010 17:26:34 +0100 |
parents | 8f5c02113c5c |
children | 9607b3251655 |
rev | line source |
---|---|
Zerotorescue@13 | 1 do |
Zerotorescue@13 | 2 |
Zerotorescue@17 | 3 local function GetTotalCount(itemId) |
Zerotorescue@17 | 4 return ICGetItemCountTotal(itemId) or -1; |
Zerotorescue@17 | 5 end |
Zerotorescue@17 | 6 |
Zerotorescue@17 | 7 local function GetCharacterCount(itemId) |
Zerotorescue@17 | 8 return ICGetItemCountCharacter(itemId) or -1; |
Zerotorescue@13 | 9 end |
Zerotorescue@13 | 10 |
Zerotorescue@13 | 11 local function IsEnabled() |
Zerotorescue@17 | 12 return (ICGetItemCountTotal and ICGetItemCountCharacter); |
Zerotorescue@13 | 13 end |
Zerotorescue@13 | 14 |
Zerotorescue@17 | 15 IMRegisterItemCountAddon("ItemCount", GetTotalCount, GetCharacterCount, IsEnabled); |
Zerotorescue@13 | 16 |
Zerotorescue@13 | 17 end |