Garry's Mod Wiki

Revision Difference

ControlPanel:FillViaFunction#518256

<function name="FillViaFunction" parent="ControlPanel" type="panelfunc"> <ispanel>yes</ispanel> <description>Calls the given function with this panel as the only argument. Used by the spawnmenu to populate the control panel.</description> <file line="98-L102">gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua</file> <realm>Client</realm> <args> <arg name="func" type="function">A function that takes one argument:&#xA;* &lt;page&gt;ControlPanel&lt;/page&gt; panelToPopulate</arg>⤶ <arg name="func" type="function">A function that takes one argument:⤶ * <page>ControlPanel</page> panelToPopulate</arg>⤶ </args> </function>