Garry's Mod Wiki

Revision Difference

DDragBase:MakeDroppable#553452

<function name="MakeDroppable" parent="DDragBase" type="panelfunc"> <ispanel>yes</ispanel>⤶ <description>Makes the panel a receiver for any droppable panel with the same DnD name. Internally calls <page>Panel:Receiver</page>.</description>⤶ <description>Makes the panel a receiver for any droppable panel with the same DnD name. Internally calls <page>Panel:Receiver</page>.⤶ ⤶ See <page>Drag and Drop for VGUI</page>.</description>⤶ <realm>Client and Menu</realm> <args> <arg name="name" type="string">The unique name for the receiver slot. Only droppable panels with the same DnD name as this can be dropped on the panel.</arg> <arg name="allowCopy" type="boolean">Whether or not to allow droppable panels to be copied when the <key>Ctrl</key> key is held down.</arg> </args> </function>