Garry's Mod Wiki

DTree_Node:SetExpanded

  DTree_Node:SetExpanded( boolean expand, boolean surpressAnimation = false )

Description

Expands or collapses this node.

Arguments

1 boolean expand
Whether to expand (true) or collapse (false)
2 boolean surpressAnimation = false
Whether to play animation (false) or not (true)