Garry's Mod Wiki

Garry's Mod Wiki

  Panel:SetDropTarget( number x, number y, number width, number height )

Description

Sets the target area for dropping when an object is being dragged around this panel using the dragndrop.

This draws a target box of the specified size and position, until Panel:DragHoverEnd is called. It uses Panel:DrawDragHover to draw this area.

Arguments

1 number x
The x coordinate of the top-left corner of the drop area.
2 number y
The y coordinate of the top-left corner of the drop area.
3 number width
The width of the drop area.
4 number height
The height of the drop area.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...