Garry's Mod Wiki

Garry's Mod Wiki

  Panel:SetPos( number posX, number posY )

Description

Sets the position of the panel's top left corner.

This will trigger PANEL:PerformLayout. You should avoid calling this function in PANEL:PerformLayout to avoid infinite loops.

See also Panel:SetX and Panel:SetY.

If you wish to position and re-size panels without much guesswork and have them look good on different screen resolutions, you may find Panel:Dock useful

Arguments

1 number posX
The x coordinate of the position.
2 number posY
The y coordinate of the position.

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