castbar: use string format for cast duration

This commit is contained in:
Moritz Spindelhirn
2017-06-09 21:57:43 +02:00
committed by shagu
parent 84a412cae4
commit ebd0d3ef33
+2 -2
View File
@@ -286,9 +286,9 @@ pfUI:RegisterModule("castbar", function ()
if delay > 0 then
delay = "|cffffaaaa+" .. round(delay,1) .. " |r "
pfUI.castbar.player.bar.right:SetText(delay .. round(cur,1) .. " / " .. round(max,1))
pfUI.castbar.player.bar.right:SetText(delay .. string.format("%.1f",cur) .. " / " .. round(max,1))
else
pfUI.castbar.player.bar.right:SetText(round(cur,1) .. " / " .. round(max,1))
pfUI.castbar.player.bar.right:SetText(string.format("%.1f",cur) .. " / " .. round(max,1))
end
return