Thread: ShowOverlayGlow
View Single Post
11-23-12, 06:20 AM   #1
Hahatoon
A Defias Bandit
Join Date: Nov 2012
Posts: 2
Question ShowOverlayGlow

Hi! I'm new to Lua I'm trying to apply WoW ingame proc glow effect to ActionButton if player has a certain buff.

Here is the code

Code:
frame = CreateFrame("Frame")
frame:SetScript("OnUpdate", function(self, elapsed)
	if ( UnitBuff("player", "Molten Armor") ) then
		ActionButton_ShowOverlayGlow(ActionButton1)
	else
                ActionButton_HideOverlayGlow(ActionButton1)
	end
end)
If player has Molten Armor then add glow effect to ActionButton1 else dont show glow effect at all.

This code is not working for me. Need help
  Reply With Quote