Originally Posted by Phanx
Didn't you establish earlier that WeakAuras needs 2 return values for a status bar? The code you just posted only provides one value.
|
Correct.
The duration function needs 2 and can handle 3 arguments.
for a time-based/animated statusbar: duration (#), expiration time (#)
for a value based/static statusbar: value (#), max-value (#), static (boolean: true)
The display-function should return true or false (and the hide function vice versa).