View Single Post
10-13-10, 01:44 PM   #4
Ereki
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 25
Ok so I've got some more troubles and I'm turning here again since it worked out great last time.
Code:
if isEnergize == true then
	_G["RuneButtonIndividual"..runeIndex]:SetAlpha(RHaic)
end
Right now I have this tied to the RUNE_POWER_UPDATE event and isEnergized is a valid variable but it won't set the alpha to 1 (which is what RHaic is). As far as I can tell RUNE_POWER_UPDATE seem to fire twice when a rune is energized, first the engerize event and the right after another and since GetRuneCooldown() still returns a cooldown even after it's energized another piece of my code just puts it back to the old alpha value. So I was thinking that I need to delay the SetAlpha() but I'm not sure how to do it, I'm guessing it has to do with OnUpdate, but I need some help with it.
(The whole lua file: http://www.pastey.net/141533 I know it's messy but I got bigger issues right now :p)

PS
Sorry for the double post but I figured it's better than making a whole new thread
  Reply With Quote