Garry's Mod Wiki

Garry's Mod Wiki

  Panel DTree_Node:AddFolder( string name, string folder, string path, boolean showFiles = false, string wildcard = "*", boolean bDontForceExpandable = false )

Description

A helper function that adds a new node and calls to DTree_Node:MakeFolder on it.

Arguments

1 string name
The name of the new node
2 string folder
The folder in the filesystem to use, relative to the garrysmod/ folder.
3 string path
The path to search in. See File Search Paths
4 boolean showFiles = false
Should files be added as nodes (true) or folders only (false)
5 string wildcard = "*"
The wildcard to use when searching for files.
6 boolean bDontForceExpandable = false

Returns

1 Panel
The created DTree_Node

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...