DPanelList.GetItems
From GMod Wiki
| Function | |
| Syntax | DPanelList:GetItems( ) |
| Description: | |
| Gets all items in a DPanelList. | |
| Returns: | Table items |
| In Object: | DPanelList |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DPanelList.GetItems]DPanelList.GetItems [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Remove all the items in the list. |
|---|---|
| Used on | |
| Code | for k, v in pairs(PanelList1:GetItems()) do PanelList1:RemoveItem(v) end |
| Output | All items in panel will be removed |
Additional Notes
- Returns a table including all of the items as panels (not copies).