Panel.CenterHorizontal
From GMod Wiki
Function | |
Syntax | Panel:CenterHorizontal( ) |
Description: | |
Centers a panel horizontally on it's parent. | |
Returns: | nil |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.CenterHorizontal]Panel.CenterHorizontal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Centers a frame horizontally on the screen. |
---|---|
Used on | |
Code | local panel = vgui.Create("DFrame"); panel:SetSize( 512, 512 ) panel:MakePopup() panel:CenterHorizontal() |
Output | N/A |