Mercurial > wow > itemauditor
comparison Modules/Tooltip.lua @ 76:574c154d24ab
Fixed the tooltip so that it is green if the auction price exactly matches your threshold.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sun, 01 Aug 2010 08:16:08 -0700 |
parents | e7d287cc3b02 |
children | 79dc87430cb3 |
comparison
equal
deleted
inserted
replaced
75:8882af8f932c | 76:574c154d24ab |
---|---|
17 if investedTotal > 0 then | 17 if investedTotal > 0 then |
18 local suggestColor | 18 local suggestColor |
19 local ap = ItemAuditor:GetAuctionPrice(link) | 19 local ap = ItemAuditor:GetAuctionPrice(link) |
20 if ap == nil then | 20 if ap == nil then |
21 suggestColor = nil | 21 suggestColor = nil |
22 elseif ap > ceil(investedPerItem/keep) then | 22 elseif ap >= ceil(investedPerItem/keep) then |
23 suggestColor = "|cFF00FF00" -- green | 23 suggestColor = "|cFF00FF00" -- green |
24 else | 24 else |
25 suggestColor = "|cFFFF0000" -- red | 25 suggestColor = "|cFFFF0000" -- red |
26 end | 26 end |
27 | 27 |