Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » ShowOverlayGlow

Thread Tools
Display Modes

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