WeakAuras

WeakAuras

206M Downloads

Missing animation option

vinilneves opened this issue ยท 5 comments

commented

Describe the bug

Expected 'custom function' to be an option at Animations > Main > Type, as described at the Wiki: https://github.com/WeakAuras/WeakAuras2/wiki/Custom-Animation-Functions

To Reproduce

What I did:
1 - Create a bar aura for a buff using a template, fingers of frost in this case.
2 - Go to the animations tab
3 - Click the Type dropdown under the Main section

Screenshots
image

image

Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
Happened with or without any other AddOns

Which version of WeakAuras are you using?
2.17.5
Are you on World of Warcraft Classic or Retail?

  • Classic
  • Retail

Was it working in a previous version? If yes, which was the last good one?
Did not try

Additional Info

commented

The Custom Functions are defined in the individual animated properties, like Alpha or Colour.

commented

This is not a bug. In a custom animation, you can set multiple different aspects of the aura to be animated, which are the fade, color, scale, etc options. Those are where custom code is accepted.

commented

What I did to solve this:
(function code at the end)

  1. Add two Conditions, one for Remaining Duration <= my threshold and the other one if >
  2. Set them to Run Custom Code
  3. Set a custom variable to true or false according to the condition (I used aura_env.brain_freeeze_ending)
    image
  4. Go to Animations and select Custom for the Type under Main
  5. Check for example Fade and change it's Type to Custom Function
  6. Change the function so it returns values based on the custom variable set by your Actions
    image

The code:

function(progress, start, delta)
    if aura_env.brain_freeeze_ending then
        return start + (progress * delta)
    end
    return start
end
commented

Also thanks @emptyrivers, @asaka-wa for the quick reply!

commented

Think I got it...Should I post my example here for reference? How about adding examples like this to the wiki?