DTree/MoveChildTo

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{PanelFunc |Description={{Internal}} Used as a placeholder empty function alongside {{ClassFunction|DTree|ExpandTo}}, {{ClassFunction|DTree|SetExpanded}} and {{ClassFuncti...")
 
(f)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{{PanelFunc
 
{{PanelFunc
|Description={{Internal}}
+
|Description=Moves given node to the top of {{Type|DTree}}s children. (Makes it the topmost mode)
  
Used as a placeholder empty function alongside {{ClassFunction|DTree|ExpandTo}}, {{ClassFunction|DTree|SetExpanded}} and {{ClassFunction|DTree|ChildExpanded}}.
+
Used as a placeholder function alongside {{ClassFunction|DTree|ExpandTo}}, {{ClassFunction|DTree|SetExpanded}} and {{ClassFunction|DTree|ChildExpanded}}.
  
Since the {{Type|DTree}} acts a root node and those methods with the same name in {{Type|DTree_Node}} call to the parent.
+
The {{Type|DTree}} acts a root node and methods with the same name in {{Type|DTree_Node}} call to the parent.
 +
}}
 +
{{Arg
 +
|type=Panel
 +
|name=child
 +
|desc=The node to move
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=pos
 +
|desc={{Deprecated}} Unused, does nothing.
 
}}
 
}}

Latest revision as of 20:16, 22 December 2017

 DTree:MoveChildTo( )

DescriptionPanelFunc

Moves given node to the top of DTrees children. (Makes it the topmost mode)

Used as a placeholder function alongside DTree:ExpandTo, DTree:SetExpanded and DTree:ChildExpanded.

The DTree acts a root node and methods with the same name in DTree_Node call to the parent.

Arguments

Panel child

The node to move

Arguments

number pos

This feature is deprecated.
You should avoid using it as it may be removed in a future version.
Unused, does nothing.
Personal tools
Navigation