Thread Tools Display Modes
05-18-21, 02:36 AM   #1
MinguasBeef
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 51
[TBC Beta] Expand Interface Category

Found solution after posting. Needed to assign the hidden variable for the subpanels before calling InterfaceAddOnsList_Update.

I used to be able to do this on an older version of the game, but i'm running into issues on the TBC beta client.

I'm trying to collapse/expand a category through code.

Here is example code to create a category with one subcategory.

Code:
panel = CreateFrame("Frame")
panel.name = "Test Category"
InterfaceOptions_AddCategory(panel)

local subpanel = CreateFrame("Frame")
subpanel.name = "Sub Category"
subpanel.parent = panel.name
InterfaceOptions_AddCategory(subpanel)
Here is my code for trying to expand the category.
Code:
panel.collapsed = false
InterfaceAddOnsList_Update();
The "expand/collapse" button updates, but the subcategory visibility is not actually being updated here.

I also tried with
Code:
InterfaceCategoryList_Update();

Any ideas on how I can achieve this?

Last edited by MinguasBeef : 05-18-21 at 02:46 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » [TBC Beta] Expand Interface Category

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