View Single Post
10-15-10, 08:38 AM   #16
Xubera
A Cobalt Mageweaver
 
Xubera's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 207
another thing, you said it called twice after the energization, then we cant clear the lastAlpha like that... we need to find another way to clear it, maybe

lastUpdate = 0--time
lastAlpha = false -- rune

then we add at the top of the elseif

if lastUpdate + 2 < GetTime() then lastAlpha = false end

and in the if isEnergized == true statement add a
lastUpdate = GetTime()


so what im envisioning is

Code:
local runeIndex, isEnergize = ...
			
	if isEnergize == true then
		G["RuneButtonIndividual"..runeIndex]:SetAlpha(RHaic)
		lastAlpha = runeIndex
        lastUpdate = GetTime()
	else 
        if lastUpdate and lastUpdate + 2 < GetTime() then lastAlpha = false end
        if lastAlpha = nil then lastAlpha = false end
		for i=1,6 do
            if lastAlpha ~= i then
                local isReady = select(3,GetRuneCooldown(i))
                if isReady then
                     _G["RuneButtonIndividual"..i]:SetAlpha(1) --RHaic
                else
                          _G["RuneButtonIndiviual"..i]:SetAlpha(0.2) -- RHaoc
                end
            end
        end
     end
EDIT: Going to work, let me know if those helped out any, but ill be getting off 6pm Pacific
__________________
Chat Consolidate is the solution to any out of control trade chat. Ignore lines, throttle chat, consolidate posts!Follow the link to find out how!

▲ ▲ WoWInterface wont let me triforce >.>

Last edited by Xubera : 10-15-10 at 09:22 AM.
  Reply With Quote