Thread Tools Display Modes
Prev Previous Post   Next Post Next
08/23/21, 06:46 PM   #1
HSBS_User
 
HSBS_User's Avatar
Join Date: Feb 2021
Posts: 8
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?
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Changes with Timer format strings/color codes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off