DTree/SetClickOnDragHover

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 4: Line 4:
 
If enabled, when hovering over any {{Type|DTree_Node}} of this {{Type|DTree}} while dragging a panel, the node will be automatically clicked on (and subsequently {{ClassFunction|DTree|OnNodeSelected}} will be called) to open any attached panels, such as spawnlists in spawnmenu.
 
If enabled, when hovering over any {{Type|DTree_Node}} of this {{Type|DTree}} while dragging a panel, the node will be automatically clicked on (and subsequently {{ClassFunction|DTree|OnNodeSelected}} will be called) to open any attached panels, such as spawnlists in spawnmenu.
  
See also {{ClassFunction|Panel|DragHoverClick}}
+
See also: {{HookFunction|PANEL|DragHoverClick}}.
 
}}
 
}}
 
{{Arg
 
{{Arg

Latest revision as of 12:27, 20 December 2018

 DTree:SetClickOnDragHover( )

DescriptionPanelFunc

Enables the "click when drag-hovering" functionality.

If enabled, when hovering over any DTree_Node of this DTree while dragging a panel, the node will be automatically clicked on (and subsequently DTree:OnNodeSelected will be called) to open any attached panels, such as spawnlists in spawnmenu.

See also: PANEL:DragHoverClick.

Arguments

boolean enable

Personal tools
Navigation