Mercurial > wow > itemauditor
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 11:03e2d9edc344 | 12:6a6296dd249f |
|---|---|
| 13 | 13 |
| 14 local investedTotal, investedPerItem, count = ItemAuditor:GetItemCost(link) | 14 local investedTotal, investedPerItem, count = ItemAuditor:GetItemCost(link) |
| 15 | 15 |
| 16 local AHCut = ItemAuditor.db.factionrealm.AHCut | 16 local AHCut = ItemAuditor.db.factionrealm.AHCut |
| 17 local keep = 1 - AHCut | 17 local keep = 1 - AHCut |
| 18 local show = false | |
| 18 | 19 |
| 19 if investedTotal > 0 then | 20 if investedTotal > 0 then |
| 20 tip:AddDoubleLine("\124cffffffffIA: Total Invested", utils:FormatMoney(investedTotal)); | 21 tip:AddDoubleLine("\124cffffffffIA: Total Invested", utils:FormatMoney(investedTotal)); |
| 21 tip:AddDoubleLine("\124cffffffffIA: Invested/Item (" .. count .. ")", utils:FormatMoney(ceil(investedPerItem))); | 22 tip:AddDoubleLine("\124cffffffffIA: Invested/Item (" .. count .. ")", utils:FormatMoney(ceil(investedPerItem))); |
| 22 tip:AddDoubleLine("\124cffffffffIA: Minimum faction AH Price: ", utils:FormatMoney(ceil(investedPerItem/keep))) | 23 tip:AddDoubleLine("\124cffffffffIA: Minimum faction AH Price: ", utils:FormatMoney(ceil(investedPerItem/keep))) |
| 24 show = true | |
| 25 | |
| 26 end | |
| 27 local groupName = QAAPI:GetItemGroup(link) | |
| 28 if groupName then | |
| 29 local threshold = QAAPI:GetGroupThreshold(groupName) | |
| 30 tip:AddDoubleLine("\124cffffffffIA: QA Threshold: ", utils:FormatMoney(threshold)) | |
| 31 show = true | |
| 32 end | |
| 33 | |
| 34 if show then | |
| 23 tip:Show() | 35 tip:Show() |
| 24 end | 36 end |
| 25 end | 37 end |
| 26 | 38 |
| 27 hooksecurefunc (GameTooltip, "SetBagItem", | 39 hooksecurefunc (GameTooltip, "SetBagItem", |
