Panel.Clear
From GMod Wiki
(Redirected from DForm.Clear)
Function | |
Syntax | Panel:Clear( Boolean bRemove ) |
Description: | |
Clears all content within specified panel(, and removes the actual content when specified and available.) | |
Returns: | nil |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.Clear]Panel.Clear [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | This will clear all options within your DPanelList. |
---|---|
Used on | |
Code | DPanelList:Clear(true) |
Output | Clears all content from the panel. |
Additional Notes
- Will not work on all Panels.
- Not setting bRemove will mean that the content will still stay loaded in memory, wasting potential FPS and RAM. So always set bRemove to true if you want the actual content to be removed.