Panel/SetDropTarget

From Garry's Mod
Jump to: navigation, search
 Panel:SetDropTarget( )

Contents

Description

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

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

number x

The x coordinate of the top-left corner of the drop area.

Arguments

number y

The y coordinate of the top-left corner of the drop area.

Arguments

number width

The width of the drop area.

Arguments

number height

The height of the drop area.
Personal tools
Navigation