Garry's Mod Wiki

The drag'n'drop library, used internally by certain base panels to allow for drag'n'drop functionality, like spawnmenu's customizations.

Methods

void dragndrop.CallReceiverFunction( boolean bDoDrop, number command, number mx, number my )
This is used internally - although you're able to use it you probably shouldn't.

Calls the receiver function of hovered panel.

void dragndrop.Clear()

Clears all the internal drag'n'drop variables.

void dragndrop.Drop()
This is used internally - although you're able to use it you probably shouldn't.

Handles the drop action of drag'n'drop library.

table dragndrop.GetDroppable( string name = "nil" )

Returns a table of currently dragged panels.

void dragndrop.HandleDroppedInGame()

If returns true, calls dragndrop.StopDragging in dragndrop.Drop. Seems to be broken and does nothing. Is it for override?

void dragndrop.HoverThink()
This is used internally - although you're able to use it you probably shouldn't.

Handles the hover think. Called from dragndrop.Think.

boolean dragndrop.IsDragging()

Returns whether the user is dragging something with the drag'n'drop system.

void dragndrop.StartDragging()
This is used internally - although you're able to use it you probably shouldn't.

Starts the drag'n'drop.

void dragndrop.StopDragging()

Stops the drag'n'drop and calls dragndrop.Clear.

void dragndrop.Think()
This is used internally - although you're able to use it you probably shouldn't.

Handles all the drag'n'drop processes. Calls dragndrop.UpdateReceiver and dragndrop.HoverThink.

void dragndrop.UpdateReceiver()
This is used internally - although you're able to use it you probably shouldn't.

Updates the receiver to drop the panels onto. Called from dragndrop.Think.

Page Links


Special Pages


Wikis

?

Render Time: 31ms

Session 0
DB GetPage 3
Generate Html 7
SaveChanges 9
Render Body 0
Render Sidebar 9