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.

Page Links


Special Pages


Wikis

?

Render Time: 38ms

DB GetPage 4
Generate Html 12
SaveChanges (1) 12
Render Body 0
Render Sidebar 8