Thread Tools Display Modes
07-12-09, 01:58 PM   #1
Deathmastuda
A Fallenroot Satyr
AddOn Compiler - Click to view compilations
Join Date: Jun 2009
Posts: 24
Thumbs down Incombat & OOC alpha for BG panels

OK, i started playing with KGPanels a few days ago and Ive got the importing textures down and I've also got the parenting and anchoring down. The next level of my "UI Education" is simple scripting. I've tried the ones in the sample scripts page but i can't get the ones i want to work, i even copy the case sensitive and spaces perfect.

Well,What I'm really looking for is a script to make the actually background panels themselves fade in and out with combat. I use Kong's ui hider for all the other stuff but it dosen't work for the BG panels.

Please just paste me a working script. That's all i ask, I'll fill in the alpha needs manually. Thank you and happy modding.
  Reply With Quote
07-12-09, 03:30 PM   #2
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Onload:
Code:
self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
if UnitAffectingCombat("player") then
    self:Hide()
else
    self:Show()
end
OnEvent:
Code:
if UnitAffectingCombat("player") then
    self:Hide()
else
    self:Show()
end
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Incombat & OOC alpha for BG panels


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