option show seconds or milliseconds added

This commit is contained in:
Sumsebrum
2021-07-26 11:27:32 +02:00
parent 17a983fad6
commit d9f0c1491a
7 changed files with 76 additions and 75 deletions

View File

@ -93,11 +93,7 @@ function Diminishings:CreateFrame(unit)
Diminishings:Positionate(unit)
else
self.timeLeft = self.timeLeft - elapsed
if self.timeLeft >=5 then
self.timeText:SetFormattedText("%d", self.timeLeft)
else
self.timeText:SetFormattedText("%.1f", self.timeLeft >= 0.0 and self.timeLeft or 0.0)
end
Gladdy:FormatTimer(self.text, self.timeLeft, self.timeLeft < 5)
end
end
end)