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
for a more in-depth explanation on what each parameter is, see: www . wowace . com/addons/weakauras/forum/21896-help-on-a-custom-function/
(sorry, can't post links yet)