Garry's Mod Wiki

DTree:AddNode

  Panel DTree:AddNode( string name, string icon = "icon16/folder.png" )

Description

Add a node to the DTree

Arguments

1 string name
Name of the option.
2 string icon = "icon16/folder.png"
The icon that will show nexto the node in the DTree.

Returns

1 Panel
Returns the created DTree_Node panel.