Garry's Mod Wiki

vgui.CreateFromTable

  Panel vgui.CreateFromTable( table metatable, Panel parent = nil, string name = "nil" )

Description

Creates a panel from table. Typically used with vgui.RegisterFile and vgui.RegisterTable.

Arguments

1 table metatable
Your PANEL table.
2 Panel parent = nil
Which panel to parent the newly created panel to.
3 string name = "nil"
Custom name of the created panel for scripting/debugging purposes. Can be retrieved with Panel:GetName.

Returns

1 Panel
The created panel, or nil if creation failed for whatever reason.