Garry's Mod Wiki

Garry's Mod Wiki

  Panel, number Panel:GetClosestChild( number x, number y )

Description

Returns the child of this panel object that is closest to the specified point. The point is relative to the object on which the method is called. The distance the child is from this point is also returned.

Arguments

1 number x
The horizontal (x) position of the point.
2 number y
The vertical (y) position of the point.

Returns

1 Panel
The child object that was closest to the specified point.
2 number
The distance that this child was from the point.

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...