Garry's Mod Wiki

Revision Difference

ControlPanel:ToolPresets#546189

<function name="ToolPresets" parent="ControlPanel" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>Creates a <page>ControlPresets</page> panel and adds it as an <page text="item">ControlPanel:AddPanel</page>.</description>⤶ <added>2021.12.15</added>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="group" type="string">The <page text="preset">presets</page> group. Must be unique.</arg>⤶ <arg name="cvarList" type="table">A table of <page>convar</page> names as keys and their defaults as the values. Typically the output of <page>Tool:BuildConVarList</page>.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="Panel">The created <page>ControlPresets</page> panel.</ret>⤶ </rets>⤶ </function>⤶ ⤶