comparison ProspectMe_Tooltip.lua @ 55:60f990099d03 v2.7.1.1

Changed color and spacing on result percentages
author Vynn <mischivin@gmail.com>
date Sun, 20 Nov 2016 22:54:27 -0500
parents 73a564278360
children f9b6c0305908
comparison
equal deleted inserted replaced
54:73a564278360 55:60f990099d03
144 if result ~= "TimesProspected" and select(3, GetItemInfo(result)) == q and ProspectMe.Config.ShowQualities[Quality[q]] then 144 if result ~= "TimesProspected" and select(3, GetItemInfo(result)) == q and ProspectMe.Config.ShowQualities[Quality[q]] then
145 local p, n = "", "" 145 local p, n = "", ""
146 if ProspectMe.Config.ShowPercent then 146 if ProspectMe.Config.ShowPercent then
147 p = num/t[item].TimesProspected*100 147 p = num/t[item].TimesProspected*100
148 if p < 10 then 148 if p < 10 then
149 p = string.format("[%.1f%%]", p) 149 p = string.format("|cffffffff[%.1f%%] ", p)
150 else 150 else
151 p = string.format("[%.0f%%]", p) 151 p = string.format("|cffffffff[%.0f%%] ", p)
152 end 152 end
153 else 153 else
154 p = "" 154 p = ""
155 end 155 end
156 if ProspectMe.Config.ShowNumber then 156 if ProspectMe.Config.ShowNumber then