DPanelList.GetItems

From GMod Wiki

Jump to: navigation, search
Function
Syntax DPanelList:GetItems( )
Description:
Gets all items in a DPanelList.
Returns: Table items
In Object: DPanelList
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DPanelList.GetItems]DPanelList.GetItems [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionRemove all the items in the list.
Used onNewerClient.png
Code
for k, v in pairs(PanelList1:GetItems()) do
	PanelList1:RemoveItem(v)
end
OutputAll items in panel will be removed


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox