Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-20-14, 04:54 PM   #1
Ereki
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 25
Cooldown spiral no longer inherit alpha?

Hi I have an addon for moving around DK runes and fading them out of combat. But now i WoD the cooldown spiral no longer seems to inherit the alpha from the frame it self, the scale also seems off (but I'm not sure on that)

Pic: http://i.imgur.com/IYZoR19.jpg

The code I'm using is just a simple RuneFrame:SetAlpha(RHaic) where RHaic is a local variable, this works fine on live but results in the cooldown spiral still showing when I'm testing it on the WoD beta. Is this related to the changes to animation and if so how do I fix it?

Code:
if (event == "PLAYER_ENTERING_WORLD" or event == "PLAYER_REGEN_ENABLED") and not UnitInVehicleControlSeat("player") then
	RuneFrame:SetAlpha(RHaoc) 	
	RuneFrame:SetScale(RHs)		
elseif event == "PLAYER_REGEN_DISABLED" and not UnitInVehicleControlSeat("player") then
	RuneFrame:SetAlpha(RHaic)
	RuneFrame:SetScale(RHs)
end
	
if ((event == "UNIT_ENTERING_VEHICLE") and UnitInVehicleControlSeat("player"))  then
	local unitID = ...
	if unitID == "player" then
		RuneFrame:SetAlpha(RHaiv)	
	end
elseif event == "PLAYER_ENTERING_WORLD" then
	if InCombatLockdown() then
		RuneFrame:SetAlpha(RHaic)
		RuneFrame:SetScale(RHs)	
	else 
		RuneFrame:SetAlpha(RHaoc) 
		RuneFrame:SetScale(RHs)
	end
elseif event == "UNIT_EXITED_VEHICLE" then
	local unitID = ...
	if unitID == "player" then
		if InCombatLockdown() then
			RuneFrame:SetAlpha(RHaic)
			RuneFrame:SetScale(RHs)
		else
			RuneFrame:SetAlpha(RHaoc) 
			RuneFrame:SetScale(RHs)
		end
	end
end
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Cooldown spiral no longer inherit alpha?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off