Hello!
I'm trying to make a Burning Embers weak aura tracker out of an Icon. I want the cooldown sweep to "fill" up counter-clockwise, so that its fully bight when I'm at 40/40 emberbits, and fully dark at 0/40 emberbits.
I've tried using a custom trigger with a custom duration that returns current and max emberbits. However, while the duration text is updated, even with cooldown checked the cooldown sweep doesn't change from being fully lit regardless of how I vary the return values.
Anyone have any idea why this isn't working?
- - - Updated - - -
Answering my own post.
The custom duration of a WeakAura is a function that returns two values: duration, expiration time.
If you want to make a cooldown sweep display, duration must be larger than 0.01.
To display a 50% completed cooldown, you set duration to 10, and expiration time to GetTime()+5. This is because the expiration time is set to 5 seconds in the future, and the duration is 10 seconds. Thus, the sweep will be done 5 seconds from now, but the overall duration is 10 seconds. Thus it is 50% done.
Here's my working ember bits tracker that displays a cooldown sweep that grows (unexpires) as you gain ember bits, and empties (cd finishes) as you run out:
Code:
diuQfaGieYLiLkJsfCkvOxHq1SeHBbHyxiQggs6ysslts8miitdsCncLTbr8nrKXbbCoiQdcHQfIipKuktecPlQI2ieOpks6KikReQxskvntKWnrOStj1prIgkPYsjKNkmvI6QqsFvKYCHqzVG)kkdwQdJulwK4XQ0KfvxwvBgs9zemAsjNMsVgI0Sj42ez3O63OmCsXYj55smDQUofBxKQVtOA8IOopPQ1db1(vgQcYqibroe5GmejtjA0L3beebQsfzKrgzKRIqilgYOubfanIGckqCnfNjj)j7qG2WVULXpKLyDwI15gfTBz8eRLOt(4WRxVET6DJIVU4klNa5OzkjA)arAxorjwNBu0ULXpo861Rx)88HxVE96HxVE96HxVE96HxVE96HxVE96HxVE96HxVE96HxVE96Hhgcd3vwceEfidX1uCMeedpm4qCnfNjj)j7OQjN2Fi(0FUdHRSei8kqgct5ZmCRdKG4AkotktlB(dHBL(CiC9AEiUMIZKG4AkotkZ1R5HO40UPaX1uCMeeOn8RBz8dhxRE3O4RDL5x)88HxVE96HxVE96HhgIp9N7qqYO4woH1NsP8QcextXzsHtFrAbc0g(1Tm(HJdVE961Q3nk(Au5wxht8xDGinc06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