Originally Posted by
nethical
You did or not ?
kinda, found this post and it helped me massively
Originally Posted by
latreese
WA Custom Text functions are passed the following parameters:
Code:
customTextFunc(region.expirationTime, region.duration, values.progress, values.duration, values.name, values.icon, values.stacks)
So, in your Custom Text function, you'd want to do something like
Code:
function(expirationTime)
local remaining = expirationTime - GetTime()
local minutes = math.floor(remaining / 60)
return (minutes > 0) and (minutes .. "m") or remaining
end
the whole problem was is just i didnt know what was being passed as paramaters and how should it look
i mean this
Code:
customTextFunc(region.expirationTime, region.duration, values.progress, values.duration, values.name, values.icon, values.stacks)
while this was enough for me, and i succesfully did the custom text function, i still dont know how would the custom condition function look, like what gets passed there, i dont really need it anymore as i change colors in "animation" rn, i still would like to know for the future how to do it via condition programmatically, ive tried looking for these function "prototypes" on github but couldnt find