Garry's Mod Wiki

dragndrop.CallReceiverFunction

  dragndrop.CallReceiverFunction( boolean bDoDrop, number command, number mx, number my )

Description

This is used internally - although you're able to use it you probably shouldn't.

Calls the receiver function of hovered panel.

Arguments

1 boolean bDoDrop
true if the mouse was released, false if we right clicked.
2 number command
The command value. This should be the ID of the clicked dropdown menu ( if right clicked, or nil )
3 number mx
The local to the panel mouse cursor X position when the click happened.
4 number my
The local to the panel mouse cursor Y position when the click happened.