Hi, im the guy who made the Boomkin rotation helper with no LUA.
I was hoping you could help me do a small amount of cleaning.
I need to display the "duration" of an icon in another icon.
My source icon displays its "duration" with no minutes and no decimal places as default like this
The "duration" is how long is remaining on a buff.
(I use OmniCC with "never show decimal places" if that helps)
When I use your DogTags to display the source icons duration in other icon
I get results that don't display the duration in the same format as the source icon (no minutes and no decimal places)
I always end up with minutes and seconds or one decimal place such as:
I have tried formatting using custom code I found on the internet which almost gets what I want.
[Duration(icon="TMW:icon:1Om2mpPsDX2m"):FormatDuration("function round(num, numDecimalPlaces)\n local mult = 10^(numDecimalPlaces or 0)\n return math.floor(num * mult + 0.5) / mult\nend")]
But this puts an "s" at the end of my seconds like this:
Is there any way that I can get my icon to check the duration of the source icon and display the duration exactly as the source icon does with no minutes, no decimal places, and no "s" at the end?
PS: I'm not a programmer and as you can see I have put in my best effort to make this work rather than bother you :D
So simple. I tried that using FormatDuration and TMWFormatDuration but never thought to try it like that.
To post a comment, please
or register a new account.