Panel/GetChildPosition

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

Contents

Description

Gets a child object's position relative to this panel object. The number of levels is not relevant; the child may have many parents between itself and the object on which the method is called.

Arguments

Panel pnl

The panel to get the position of.

Returns

number

The horizontal (x) position of the child relative to this panel object.

Returns

number

The vertical (y) position of the child relative to this panel object.
Personal tools
Navigation