Garry's Mod Wiki

Revision Difference

Panel:Add#517676

<function name="Add" parent="Panel" type="classfunc"> <description>Adds the specified object to the panel.</description> <realm>Client</realm> <args> <arg name="object" type="Panel">The panel to be added (parented). Can also be:&#xA;* &lt;page&gt;string&lt;/page&gt; Class Name - creates panel with the specified name and adds it to the panel.&#xA;* &lt;page&gt;table&lt;/page&gt; PANEL table - creates a panel from table and adds it to the panel.</arg>⤶ <arg name="object" type="Panel">The panel to be added (parented). Can also be:⤶ * <page>string</page> Class Name - creates panel with the specified name and adds it to the panel.⤶ * <page>table</page> PANEL table - creates a panel from table and adds it to the panel.</arg>⤶ </args> <rets> <ret name="" type="Panel">New panel</ret> </rets> </function>