Mercurial > wow > itemauditor
diff Modules/Tooltip.lua @ 12:6a6296dd249f
Removed dependency on DevTools, completed chaning over the database to use links instead of names, Added integration with my version of QuickAuctions3 (I need to make this optional soon)
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Wed, 30 Jun 2010 22:59:37 -0700 |
| parents | c79ede3c7b82 |
| children | 8c83d5f6e306 |
line wrap: on
line diff
--- a/Modules/Tooltip.lua Wed Jun 30 22:56:06 2010 -0700 +++ b/Modules/Tooltip.lua Wed Jun 30 22:59:37 2010 -0700 @@ -15,11 +15,23 @@ local AHCut = ItemAuditor.db.factionrealm.AHCut local keep = 1 - AHCut + 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))) + 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 + end + + if show then tip:Show() end end
