Vgui example

Hey, I can’t seem to get this concept at all. I’ve been trying for a really fucking long time to get my vgui to refresh properly. So here’s what I’m asking, that someone create an example of a custom vgui that utilizes the ‘performlayout()’ function to refresh a vgui panel, but it has to contain a list of collapsible categories containing a list of whatever. All that, and BE ABLE TO BE REFRESHED PROPERLY. I can’t get it, maybe one of you can. I hope.

Nvm, fixed the problem. The trick was to parent the collapsible category to the panel List, and loop through the parent list’s items, clearing each one sequentially.