Garry's Mod Wiki


  DDragBase:MakeDroppable( string name, boolean allowCopy )


Makes the panel a receiver for any droppable panel with the same DnD name. Internally calls Panel:Receiver.

See Drag and Drop for VGUI.


1 string name
The unique name for the receiver slot. Only droppable panels with the same DnD name as this can be dropped on the panel.
2 boolean allowCopy
Whether or not to allow droppable panels to be copied when the ctrl key is held down.