Garry's Mod Wiki

dragndrop

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

Methods

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.
dragndrop.Clear()
Clears all the internal drag'n'drop variables.
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.
dragndrop.HandleDroppedInGame()
If returns true, calls dragndrop.StopDragging in dragndrop.Drop. Seems to be broken and does nothing. Is it for override?
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.
dragndrop.StartDragging()
This is used internally - although you're able to use it you probably shouldn't. Starts the drag'n'drop.
dragndrop.StopDragging()
Stops the drag'n'drop and calls dragndrop.Clear.
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.
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: 27ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 11