# HG changeset patch # User Vynn # Date 1479500397 18000 # Node ID 73a564278360e49605f65f3eee1eeacaa7528b65 # Parent 3e925b075e7d6fd3b44b739b468eebfbf326cdac Fixed a minor issue with margin colorization in the tooltip diff -r 3e925b075e7d -r 73a564278360 ProspectMe_Tooltip.lua --- 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