Garry's Mod Wiki

Garry's Mod Wiki

  number, number Panel:GetChildPosition( Panel pnl )

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

1 Panel pnl
The panel to get the position of.

Returns

1 number
The horizontal (x) position of the child relative to this panel object.
2 number
The vertical (y) position of the child relative to this panel object.

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 four times a day. Edits and history are not available.

Last Parsed: Loading...