Garry's Mod Wiki

DPanelList:AddItem

  DPanelList:AddItem( Panel pnl, string state = nil )

Description

Adds a existing panel to the end of DPanelList.

Arguments

1 Panel pnl
Panel to be used as element of list
2 string state = nil
If set to "ownline", the item will take its own entire line.