Garry's Mod Wiki

Revision Difference

DForm:NumSlider#513125

<function name="NumSlider" parent="DForm" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>Adds a <page>DNumSlider</page> onto the <page>DForm</page></description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="label" type="string">The label of the DNumSlider</arg>⤶ <arg name="convar" type="string">The console variable to change when the slider is changed</arg>⤶ <arg name="min" type="number">The minimum value of the slider</arg>⤶ <arg name="max" type="number">The maximum value of the slider</arg>⤶ <arg name="decimals" type="number" default="nil">The number of decimals to allow on the slider. (Optional)</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="Panel">The created <page>DNumSlider</page></ret>⤶ </rets>⤶ </function>⤶ ⤶