View Single Post
02-17-15, 07:47 AM   #9
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
Originally Posted by Phanx View Post
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).
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker

Last edited by humfras : 02-17-15 at 07:57 AM.
  Reply With Quote