Mercurial > wow > itemauditor
diff Modules/Tooltip.lua @ 13:8c83d5f6e306
OPTIONS! QuickAuctions is now an optional dependency. I have also added some configuration options for it. If you have QA but don't want IA to update your thresholds you can shut off the integration. I have also added other options so you can select your faction or the neutral AH and it will update the tooltip.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Fri, 02 Jul 2010 21:39:24 -0700 |
parents | 6a6296dd249f |
children | 44e70a3fdb19 |
line wrap: on
line diff
--- a/Modules/Tooltip.lua Wed Jun 30 22:59:37 2010 -0700 +++ b/Modules/Tooltip.lua Fri Jul 02 21:39:24 2010 -0700 @@ -13,22 +13,24 @@ local investedTotal, investedPerItem, count = ItemAuditor:GetItemCost(link) - local AHCut = ItemAuditor.db.factionrealm.AHCut - local keep = 1 - AHCut + local keep = 1 - addon:GetAHCut() local show = false if investedTotal > 0 then tip:AddDoubleLine("\124cffffffffIA: Total Invested", utils:FormatMoney(investedTotal)); tip:AddDoubleLine("\124cffffffffIA: Invested/Item (" .. count .. ")", utils:FormatMoney(ceil(investedPerItem))); - tip:AddDoubleLine("\124cffffffffIA: Minimum faction AH Price: ", utils:FormatMoney(ceil(investedPerItem/keep))) + tip:AddDoubleLine("\124cffffffffIA: Minimum " .. addon:GetAHFaction() .. " AH Price: ", utils:FormatMoney(ceil(investedPerItem/keep))) show = true end - local groupName = QAAPI:GetItemGroup(link) - if groupName then - local threshold = QAAPI:GetGroupThreshold(groupName) - tip:AddDoubleLine("\124cffffffffIA: QA Threshold: ", utils:FormatMoney(threshold)) - show = true + + if addon:IsQAEnabled() then + local groupName = QAAPI:GetItemGroup(link) + if groupName then + local threshold = QAAPI:GetGroupThreshold(groupName) + tip:AddDoubleLine("\124cffffffffIA: QA Threshold: ", utils:FormatMoney(threshold)) + show = true + end end if show then