Thread: ShowOverlayGlow
View Single Post
12-07-12, 09:13 AM   #5
Hahatoon
A Defias Bandit
Join Date: Nov 2012
Posts: 2
Thanks for help! But it worked for me only with this code

Code:
local f = CreateFrame("Button") --Button instead Frame
f:RegisterUnitEvent("UNIT_AURA", "player")
f:SetScript("OnEvent", function()
  if UnitBuff("player", "Molten Armor") then
    ActionButton_HideOverlayGlow(ActionButton1) --Reverse than and else
  else
    ActionButton_ShowOverlayGlow(ActionButton1)
  end
end)
Could you explain me the "Reverse then and else" ? Looks like a bug or smth.

Last edited by Hahatoon : 12-07-12 at 10:02 AM.
  Reply With Quote