vgui.Create

From GMod Wiki

Jump to: navigation, search
Function
Syntax vgui.Create( String panelType, Panel parent, String targetName )
Where is this used?
Description:
Creates & returns a panel, which is parented to parent(Optional), with the targetname targetName(Optional).
Returns: Panel
Part of Library: vgui
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vgui.Create]Vgui.Create [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreate a very simple VGUI frame.
Used onNewerClient.png
Code
local frame = vgui.Create("Frame")
frame:SetName("HelloWorldFrame")
OutputCreates a frame.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox