Panel.Center

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:Center( )
Description:
Centers a panel on it's parent.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.Center]Panel.Center [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCenters a frame on the screen.
Used onNewerClient.png
Code
local panel = vgui.Create("DFrame");
panel:SetSize( 512, 512 )
panel:MakePopup()
panel:Center()
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox