Thread Tools Display Modes
11-03-10, 10:57 AM   #1
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 94
My addon doesn't hide when the interface is hidden

Hi,

with one of my addons (nivBuffs) I have a strange problem. When I hide the whole interface with ALT + Z, the addon is still visible.

So.. eh.. what would I have to do to make it hide too?

Thanks in advance,
Luzzi.
  Reply With Quote
11-03-10, 11:05 AM   #2
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
lua Code:
  1. -- init secure aura headers
  2. local buffHeader = CreateFrame("Frame", "nivBuffs_Buffs", nil, "SecureAuraHeaderTemplate")
  3. local debuffHeader = CreateFrame("Frame", "nivBuffs_Debuffs", nil, "SecureAuraHeaderTemplate")

Your headers aren't parented to UIParent, which essentially is what you hide.
__________________
Oh, the simulated horror!
  Reply With Quote
11-03-10, 11:06 AM   #3
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 94
Well, that was easy. Thanks alot!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » My addon doesn't hide when the interface is hidden


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