Garry's Mod Wiki

Revision Difference

DTree:MoveChildTo#553778

<function name="MoveChildTo" parent="DTree" type="panelfunc"> <ispanel>yes</ispanel>⤶ <description> Moves given node to the top of <page>DTree</page>s children. (Makes it the topmost mode) Used as a placeholder function alongside <page>DTree:ExpandTo</page>, <page>DTree:SetExpanded</page> and <page>DTree:ChildExpanded</page>. The <page>DTree</page> acts a root node and methods with the same name in <page>DTree_Node</page> call to the parent. </description> <realm>Client and Menu</realm> <args> <arg name="child" type="Panel">The node to move</arg> <arg name="pos" type="number"><deprecated></deprecated> Unused, does nothing.</arg> </args> </function>