View Single Post
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