Is there a way I can close all panels opened with MakePopup at once, without referring to individual ones?
Panel:MakePopup() doesn't do anything besides bring the provided panel to the foreground of its parent panel.
If that's a frame parented to nothing, it considers the general screen as the parent, and will bring that specific frame to the front.
If you're looking to close a panel, closing the top-most parent panel will auto-close all attributed panels. Closing a frame will close all panels parented to that frame.
I don't know why you're bringing up MakePopup if you're looking to close panels.
I want to close all DFrames to be clear.
You can take all panels from vgui.GetWorldPanel and find DFrames
Sorry, you need to Log In to post a reply to this thread.