Garry's Mod Wiki

Revision Difference

Panel:Add#550675

<function name="Add" parent="Panel" type="classfunc"> <description>Adds the specified object to the panel.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <args> <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>