vgui.Create

From GMod Wiki

Revision as of 10:58, 26 June 2010 by Jcw87 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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