Originally Posted by Kygo
Did react to something (maybe it's supposed to happen?) when i wrote this
(Using Notepad++ with language set to LUA)
|
There is a global "time" function in Lua. Since you're not using it anywhere in your code, it doesn't matter, but if you prefer your editor not highlight it as a built-in global, just use another name.
Originally Posted by Kygo
Are you refering to "local function auras_PostUpdateIcon.."?
|
Yes.
Originally Posted by Kygo
So something like this: "time:SetFormattedText(m:s)" ?
|
fontstring:SetFormattedText(...) is the same as (but faster than) doing
fontstring:SetText(string.format(...)) so just refer to the documentation for string.format to see what arguments you need to provide:
http://wowpedia.org/API_format
https://www.gnu.org/software/libc/ma...nt-Conversions
Or just look at other addons that display formatted time strings:
https://github.com/haste/oUF/blob/ma...stbar.lua#L371