Panel/Droppable

From Garry's Mod
Jump to: navigation, search
 Panel:Droppable( )

Description

Makes this panel droppable. This is used with Panel:Receiver to create drag and drop events.

Can be called multiple times with different names allowing to be dropped onto different receivers.

Arguments

string name

Name of your droppable panel

Returns

table

Blank table stored on the panel itself under pnl.m_DragSlot[ name ]. Is reset every time this function is called and does not appear to be used or exposed anywhere else.
Personal tools
Navigation