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