Changes with Timer format strings/color codes
A couple addons I use have timer displays/countdowns. I'd like to make two changes for some elements of those timer formats:
1.) Hide the "s" text after the numerals when a timer is on seconds. (seconds are implied by pacing, I feel the "s" is unnecessary- keep "m" for minutes "h" for hours)
2.) Add a color call for numeral countdown depending on the remaining duration (under 4 sec count goes orange, under 2 sec- count goes red etc...)
The whole time format function is a little intimidating to me lol- still quite bad at lua and don't want to break any strings :x Anyone able to instruct me on how to achieve this/ point me in the right direction (other addons using this in their code I could just cannibalize?
|