Panel/GetClosestChild

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

Contents

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

number x

The horizontal (x) position of the point.

Arguments

number y

The vertical (y) position of the point.

Returns

Panel

The child object that was closest to the specified point.

Returns

number

The distance that this child was from the point.
Personal tools
Navigation