Garry's Mod Wiki

Revision Difference

vgui.CreateFromTable#529633

<function name="CreateFromTable" parent="vgui" type="libraryfunc"> <description>Creates a panel from table.</description> <realm>Client and Menu</realm> <file line="50-69">lua/includes/extensions/client/panel/scriptedpanels.lua</file> <args> <arg name="metatable" type="table">Your PANEL table</arg> <arg name="parent" type="Panel" default="nil">Which panel to parent the newly created panel to</arg> <arg name="name" type="string" default="nil">Name of your panel</arg> </args> <rets> <ret name="" type="Panel">Created panel</ret> </rets> </function>