Garry's Mod Wiki

Panel:SetPos

Panel:SetPos( number posX, number posY )

Description

Sets the position of the panel.

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

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.

Page Links


Special Pages


Wikis

?

Render Time: 31ms

Session 0
DB GetPage 3
Generate Html 6
SaveChanges 8
Render Body 0
Render Sidebar 12