Garry's Mod Wiki

Panel:SetDropTarget

  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.