Garry's Mod Wiki

DTree_Node:AddNode

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

Description

Add a child node to the DTree_Node

Arguments

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

Returns

1 Panel
Returns the created DTree_Node panel.