Mercurial > wow > inventory
view Plugins/ItemCountAddons/ItemCount.lua @ 110:67bd5057ecb7
Implemented vendor restocking with the mover. Comitting so I can always review this working version, but I?ll be disabling all part of it as it is not going to work properly without seriously compromising the code structure.
Debug messages are now appended with ?Inventorium? (my MailOpener addon was making stuff difficult).
Now properly removing the refill window from the displayed static popup windows list so new popups won?t be aligned at odd locations.
Changed ?CreateMoverFrame? to not contain any scenario-specific info. All settings can be set with SetFrameSettings.
Items that belong to speciality bags are now put there. Other items now ignore spaciality bags.
Implemented test code for mailbox refill support. It has been disabled due to some issues but may be introduced later.
The guild withdrawal limit is now taken into consideration.
Queue is now reset before scanning again.
author | Zerotorescue |
---|---|
date | Fri, 14 Jan 2011 23:25:05 +0100 |
parents | 3bec0ea44607 |
children |
line wrap: on
line source
do local function GetTotalCount(itemId) return ICGetItemCountTotal(itemId) or -1; end local function GetCharacterCount(itemId) local bags, bank, auctionHouse, mail = ICGetItemCountCharacter(itemId); return bags or 0, bank or 0, auctionHouse or 0, mail or 0; 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