DTree/MoveChildTo

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(f)
 
(One intermediate revision 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)
  
Directly calls to {{ClassFunction|DPanelList|InsertAtTop}}.
+
Used as a placeholder function alongside {{ClassFunction|DTree|ExpandTo}}, {{ClassFunction|DTree|SetExpanded}} and {{ClassFunction|DTree|ChildExpanded}}.
 
+
Used as a placeholder empty function alongside {{ClassFunction|DTree|ExpandTo}}, {{ClassFunction|DTree|SetExpanded}} and {{ClassFunction|DTree|ChildExpanded}}.
+
  
 
The {{Type|DTree}} acts a root node and 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.
Line 11: Line 9:
 
|type=Panel
 
|type=Panel
 
|name=child
 
|name=child
 +
|desc=The node to move
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
|name=pos?
+
|name=pos
|desc={{Depreacted}} Unused, does nothing.
+
|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