Garry's Mod Wiki

DTree_Node:PopulateChildrenAndSelf

  DTree_Node:PopulateChildrenAndSelf( boolean expand )

Description

This is used internally - although you're able to use it you probably shouldn't.

Called automatically from DTree_Node:SetExpanded (or when user manually expands the node) to populate the node with sub-nodes from the filesystem if this was enabled via DTree_Node:MakeFolder.

Arguments

1 boolean expand
Expand self once population process is finished.