Thread Tools Display Modes
04/02/14, 12:08 PM   #1
Biki
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 34
Remove UI element?

Maybe I'm missing something, but is there a way to completely remove an UI element?
Hiding isn't the best option here, I want to remove a label in my addon that I no longer need.

Any advice? Thanks!
  Reply With Quote
04/03/14, 10:24 PM   #2
Tingle0x539
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 25
I would like to know the same.

Doing SetHidden(true) doesn't seem like the right way to do it... And forcing a reloadui to rebuild everything is even more uglier.

Last edited by Tingle0x539 : 04/03/14 at 10:35 PM.
  Reply With Quote
04/03/14, 10:44 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
You can't destroy frames/controls. You can remove all reference to them and the garbage collector will take them out when it runs.

If deleting your frames (instead of just hiding them) is something you need to be worrying about, then you need to be reusing your frames instead of creating a bunch of new ones.
http://www.esoui.com/forums/showthread.php?t=143
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Remove UI element?


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