Mercurial > wow > itemauditor
diff Modules/Tooltip.lua @ 135:a529a4a4ccbe
I removed the persistent queue (Ticket 33) It caused to many bugs and was blocking me from getting other things done. I think its something that will get implemented again once I figure out the best way to do it.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sat, 02 Oct 2010 11:38:22 -0700 |
parents | 7f81764aa03a |
children |
line wrap: on
line diff
--- a/Modules/Tooltip.lua Wed Sep 15 21:34:57 2010 -0700 +++ b/Modules/Tooltip.lua Sat Oct 02 11:38:22 2010 -0700 @@ -1,16 +1,10 @@ local ItemAuditor = select(2, ...) local Tooltip = ItemAuditor:NewModule("Tooltip") -local Crafting -local Utils = ItemAuditor:GetModule("Utils") - local function ShowTipWithPricing(tip, link, num) if (link == nil) then return; end - if not Crafting then - Crafting = ItemAuditor:GetModule("Crafting") - end -- local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, _, _, _, _, itemVendorPrice = GetItemInfo (link); -- local _, _, Color, Ltype, Id, Enchant, Gem1, Gem2, Gem3, Gem4, Suffix, Unique, LinkLvl, Name = string.find(link, "|?c?f?f?(%x*)|?H?([^:]*):?(%d+):?(%d*):?(%d*):?(%d*):?(%d*):?(%d*):?(%-?%d*):?(%-?%d*):?(%d*)|?h?%[?([^%[%]]*)%]?|?h?|?r?") @@ -47,34 +41,6 @@ show = true end end - - - shoppingList = Crafting.GetShoppingList(Utils.GetItemID(link)) - if shoppingList then - tip:AddDoubleLine("\124cffffffffIA Queue", "\124cffffffffhave/total") - for character, recipes in pairs(shoppingList.characters) do - local count = 0 - local need = 0 - local color = '\124cff00ff00' -- green - for link, data in pairs(recipes) do - need = need + data.need - count = count + data.count - end - if need > 0 then - color = '\124cffff0000' -- red - end - tip:AddDoubleLine("\124cffffffff"..character, format("%s%s/%s", color, count-need, count)) - if true then -- show details - for link, data in pairs(recipes) do - if data.need > 0 then - tip:AddDoubleLine("\124cffffffff"..link, format("\124cffffffff%s/%s", data.count-data.need, data.count)) - end - end - end - - end - show = true - end if show then tip:Show()