1. #1

    Weakauras; timer format?

    Hi all,

    I'm fairly new to modding/UIs. I'm trying to set up my own by using weakauras and so far everything is to my liking. However, one thing I would like to change is the timer format on buffs as the width exceeds the width of the icons, overlapping with other timers. Is there a way to change the mm:ss format to simply show minutes remaining and switch to seconds as soon as the timer drops below 1min?

    Thank you very much in advance for the help!

    Brgds,
    Cam

  2. #2
    In the future, when you want help with a weakaura, you need to share it. The best way is to export the weakaura string to https://wago.io and then post the link here. Since you're a new account, you can drop the https:// part of the link so people can see it.

    I'm going to assume you created a dynamic group that contains an auto cloning icon group to display your buffs. Put %c in the display box for the dynamic group and then put the following function in the custom function box that pops up:

    Code:
    function(exp)
        return exp and exp>0 and format(SecondsToTimeAbbrev(exp-GetTime())) or ""
    end

    This will display text on the icon exactly how Blizzard's buff frame displays remaining time.
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

  3. #3
    Quote Originally Posted by Kanegasi View Post
    Code:
    function(exp)
        return exp and exp>0 and format(SecondsToTimeAbbrev(exp-GetTime())) or ""
    end

    This will display text on the icon exactly how Blizzard's buff frame displays remaining time.
    Hi Kanegasi,

    Thank you very much for the info. I'm kind of learning as I go, there's a lot of info on WeakAuras out there, but so much so it becomes a bit too much. Perhaps that's the result of old age, sorry

    The above is exactly what I was looking for, however, the text now states '29 m' with double space in between the number and letter. So they still overlap. Is there a way for the M to be attached to the number? Or perhaps drop the M alltogether?

    Also, I'm not sure what auto-cloning means, but it sounds like it will automate a lot of things I'm doing manually now; adding each and every buff and debuff by hand Is there a tutorial you can perhaps link to? No need to explain it, I'll try and read up on it first.

    This is the link using Wago.io: wago.io/fzs8P3Hyv

  4. #4
    In the Display tab, under "Text 1", there is size, font, and anchor settings. By default, icon text is anchored to its inner bottom right edge, which makes large text push off the left side. It's not really a double space between the number and label, just looks big.

    As for a dynamic group, you make a new aura using the dynamic setting, then with that group selected, you choose icon and then name that. The icon should show up directly under the dynamic group you made. In the trigger tab for the dynamic group, check the "auto clone" setting at the bottom (don't bother messing with the icon settings, the dynamic group will take care of it).

    If you want to see some working examples, I tossed together these two for you:

    https://wago.io/S6YMYHq0M (this one shows all buffs)

    https://wago.io/Lf5G1FOoh (this one shows only buffs with a timer on them)
    Last edited by Kanegasi; 2020-06-12 at 05:24 PM.
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

  5. #5
    Thank you very much Kanegasi, highly appreciated!

Posting Permissions

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