SpellActivationOverlay

SpellActivationOverlay

3M Downloads

Fade out after 1min

ennvina opened this issue · 1 comments

commented

Spell Alerts are currently dimmed when out of combat, at 50% opacity.

They should also be totally hidden (i.e. 0% opacity) after a certain time out of combat, let’s say after 1 minute.

The main target of this feature is Heating Up which has no duration. Nota: it’s not a bug, the buff really has an infinite duration, it even persists through death.

One clean way to do it, if possible, would be to define combatAnimOut as a 3-step animation:

  1. dim from 100% opacity to 50% opacity in 0.2 seconds (= current behavior)
  2. stay at 50% opacity for 60 seconds
  3. hide progressively from 50% opacity to 0% opacity in 2 seconds

And then the OnFinished callback would set opacity to 0% (instead of 50% currently).

If the multi-step animation is not possible, then a chain of steps must be performed e.g., combatAnimOut1, combatAnimOut2 and combatAnimOut3 and each OnFinished has a callback to start the next animation. Beware of functions who used to cancel combatAnimOut, such functions must now cancel the 3 new ones.

commented

Implemented in #77.

Implementation happens in the XML schema, thus there is no need to separate the animation in 3 steps that would be chained manually.

Duration of step 2 has been lowered from 60 seconds to 27.8 seconds, for a total fade-out of 30 seconds.

Please read the Pull Request details for more information.