Revision Difference
vgui.Create#523909
<function name="Create" parent="vgui" type="libraryfunc">
<description>Creates a panel by the specified classname.</description>⤶
<description>Creates a panel by the specified classname.⤶
<note>Custom VGUI elements are not loaded instantly. Use <page>GM:OnGamemodeLoaded</page> to create them on startup.</description>⤶
<realm>Client and Menu</realm>
<args>
<arg name="classname" type="string">Classname of the panel to create. Valid classnames are listed at: <page>VGUI Element List</page>.</arg>
<arg name="parent" type="Panel" default="nil">Parent of the created panel.</arg>
<arg name="name" type="string" default="nil">Name of the created panel.</arg>
</args>
<rets>
<ret name="" type="Panel">panel</ret>
</rets>
</function>