Garry's Mod Wiki

DDragBase:MakeDroppable

  DDragBase:MakeDroppable( string name, boolean allowCopy )

Description

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

See Drag and Drop for VGUI.

Arguments

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.