Modified TTA to be a X:XX countdown to avoid having to pluralise minutes/seconds
wobster [01-30-08 - 13:04]
Modified TTA to be a X:XX countdown to avoid having to pluralise minutes/seconds
diff --git a/TomTom_CrazyArrow.lua b/TomTom_CrazyArrow.lua
index 0fe78cd..37f5569 100644
--- a/TomTom_CrazyArrow.lua
+++ b/TomTom_CrazyArrow.lua
@@ -153,11 +153,7 @@ local function OnUpdate(self, elapsed)
if delta > 0 then
local eta = dist/(delta/time)
- if eta > 60 then
- tta:SetText(sformat("%d minutes and %d seconds", eta / 60, eta % 60))
- else
- tta:SetText(sformat("%d seconds", eta))
- end
+ tta:SetText(sformat("%d:%02d", eta / 60, eta % 60))
else
tta:SetText("***")
end