Mercurial > wow > itemauditor
comparison Modules/Tooltip.lua @ 15:44e70a3fdb19
Merged utils into ItemAuditor.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sat, 03 Jul 2010 07:40:01 -0700 |
parents | 8c83d5f6e306 |
children | e62d878c716d |
comparison
equal
deleted
inserted
replaced
14:6fc9fbaa94b3 | 15:44e70a3fdb19 |
---|---|
15 | 15 |
16 local keep = 1 - addon:GetAHCut() | 16 local keep = 1 - addon:GetAHCut() |
17 local show = false | 17 local show = false |
18 | 18 |
19 if investedTotal > 0 then | 19 if investedTotal > 0 then |
20 tip:AddDoubleLine("\124cffffffffIA: Total Invested", utils:FormatMoney(investedTotal)); | 20 tip:AddDoubleLine("\124cffffffffIA: Total Invested", addon:FormatMoney(investedTotal)); |
21 tip:AddDoubleLine("\124cffffffffIA: Invested/Item (" .. count .. ")", utils:FormatMoney(ceil(investedPerItem))); | 21 tip:AddDoubleLine("\124cffffffffIA: Invested/Item (" .. count .. ")", addon:FormatMoney(ceil(investedPerItem))); |
22 tip:AddDoubleLine("\124cffffffffIA: Minimum " .. addon:GetAHFaction() .. " AH Price: ", utils:FormatMoney(ceil(investedPerItem/keep))) | 22 tip:AddDoubleLine("\124cffffffffIA: Minimum " .. addon:GetAHFaction() .. " AH Price: ", addon:FormatMoney(ceil(investedPerItem/keep))) |
23 show = true | 23 show = true |
24 | 24 |
25 end | 25 end |
26 | 26 |
27 if addon:IsQAEnabled() then | 27 if addon:IsQAEnabled() then |
28 local groupName = QAAPI:GetItemGroup(link) | 28 local groupName = QAAPI:GetItemGroup(link) |
29 if groupName then | 29 if groupName then |
30 local threshold = QAAPI:GetGroupThreshold(groupName) | 30 local threshold = QAAPI:GetGroupThreshold(groupName) |
31 tip:AddDoubleLine("\124cffffffffIA: QA Threshold: ", utils:FormatMoney(threshold)) | 31 tip:AddDoubleLine("\124cffffffffIA: QA Threshold: ", addon:FormatMoney(threshold)) |
32 show = true | 32 show = true |
33 end | 33 end |
34 end | 34 end |
35 | 35 |
36 if show then | 36 if show then |