1. #1

    [WeakAura] Icon w/ custom cooldown sweep

    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(Au5wxht8xDGinc06Ffrjwh6oPGImDuM2POmsOkQMS6uZojgPtrrI1UY8hh(55qCnfNjHOgfTBzCiqB4x3Y4hoo861RxRE3O4RjNAfIJk366yI)kIrN8bI0iqR)veLyDO7KckY0rzANIYiHQOAYQtn7KyKoffjw7kZFmX6uFx2k9hosCYPwH4OYTUoM4V6arAeO1)kIsSo0Dsbfz6OmTtrzKqvunz1PMDsmsNIIeRDL5po8ZZhE4HhE4HhE4HhE4HhE4HhE4HhE4HhE4HhE4HhE4HhE4HhE4HhE4HhgIp9N7fiqTMm5mDuM2Piim8p9N7qqBCgexT(lsHWOjN2FWHanJ7quHk1kRjXeYHqR3sqlhQtsmiey05GmeoTWZDqgcjJGBbzWbhIRaDPaYquSCccpePH4IOGsTP9GdrUfnA71i46bziKmcUfKbhCiu03hKHqYi4wqgCWHWu(SIM)cKGOO5VGmeflNGWd1ie4qykF2vGUuasqOycpidHKrWTGm4GdoeOzCpSi8d1vqbc1tWY4Y618qyVmoeimJjb1ujVcYqCzmHCM4CGee2Ciq0V4k2Asgf3YjS(ukLxvGqCBURfuNKyqONs0OlVdiOyurcsetmeOAsutQcsqHkvanIGcsGGBKKvwceEvbQRcbn3kr7wghKHqI2YbzimLp7YeykGeexMatLkutfIltGPK1R5HO4kAlbTCTXeykiUmbMseutfIltGPib1uH4YeykehQRco4qKBlAeO1t2LXHGmU)k003hXi7Y4feJofRG11NjoTsGDrAwkgf3Yj8sP8Qcb1)Ciko9fPfDml3HqBN1YNIahIceviVk5ujpjishQRIsLQGdaa
    Last edited by Brusalk; 2015-08-17 at 04:57 AM.

  2. #2
    Stood in the Fire OOMM's Avatar
    15+ Year Old Account
    Join Date
    Sep 2007
    Location
    Kel'Thuzad
    Posts
    374
    Very interesting, the concept works well with embers too since a full ember would be evenly one quarter of the icon square.
    Using computers to make demons kill dragons: Warlock beta spell WeakAuras here, @OOMM_UI, OOMM@kt-us

  3. #3
    Third return value in custom duration func. defines weather it's a time counter or a static bar.

    Former works as you wrote : return duration, expirationTime
    Latter is more simple : return current, maximum, true

    Fourth sets inverse state.

    EDIT : It seems a static duration information cannot be used for cooldown animation. OP's method looks the only simple way to do that.
    Last edited by ekardnah; 2015-08-18 at 03:44 AM.

  4. #4
    Just wanted to say thanks to OP. I spent hours trying to figure this out myself to no avail and this topic was the only place I finally found what I needed. Cheers.

    Wanted to make custom swipe for glyphed frost strike (32 runic power).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •