Advertisement
Djkroo

Energy Bar Color Change synt

Aug 17th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Not something I'm interested in doing but you could achieve it with a little custom code. Find the "energy bar" weakaura and go to the animations tab, in the "Main" section select "Custom" in the dropdown, type 1 in the duration box, then scroll down and check the "Color" checkbox. Select "Custom Function" in the "Type" dropdown, pick the color you'd like it to change to at high energy and then paste this in the "Custom Function" text field:
  2. Code: Select all
  3. function(p, r1, g1, b1, a1, r2, g2, b2, a2)
  4. if UnitPower("player", 3) >= 50 then
  5. return r2, g2, b2, a2
  6. end
  7. return r1, g1, b1, a1
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement