changeset 54:73a564278360

Fixed a minor issue with margin colorization in the tooltip
author Vynn <mischivin@gmail.com>
date Fri, 18 Nov 2016 15:19:57 -0500
parents 3e925b075e7d
children 60f990099d03
files ProspectMe_Tooltip.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ProspectMe_Tooltip.lua	Fri Nov 18 07:10:26 2016 -0500
+++ b/ProspectMe_Tooltip.lua	Fri Nov 18 15:19:57 2016 -0500
@@ -119,10 +119,10 @@
 				local profit = lifetimeReturn - ctp
 				local margin = (lifetimeReturn / ctp * 100) - 100
 				self:AddDoubleLine("Estimated Profit:  " .. ProspectMe.FormatPrice(profit), "Cost to " .. spelltext .. ":  " .. ProspectMe.FormatPrice(ctp),1,1,1,1,1,1)
-				if margin < 30 then
+				if margin < 15 then
+					color = "|cffff0000"
+				elseif margin < 30 then
 					color = "|cffffff00"
-				elseif margin < 15 then
-					color = "|cffff0000"
 				else
 					color = "|cff00ff00"
 				end