DTree.GetSelectedItem
From GMod Wiki
| Function | |
| Syntax | DTree:GetSelectedItem( ) |
| Description: | |
| Returns the currently selected item in the DTree panel. | |
| Returns: | Panel |
| In Object: | DTree |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DTree.GetSelectedItem]DTree.GetSelectedItem [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Basic Demonstration |
|---|---|
| Used on | |
| Code | local DTree= vgui.Create( "DTree" ) node = DTree:AddNode( "Test" ) DTree:SetSelectedItem(node) print(DTree:GetSelectedItem()) |
| Output | Panel Panel |