Garry's Mod Wiki

Revision Difference

DSlider:TranslateValues#548686

<function name="TranslateValues" parent="DSlider" type="panelfunc">⤶ <function name="TranslateValues" parent="DSlider" type="panelhook">⤶ <ispanel>yes</ispanel> <description>For override by child panels, such as <page>DNumSlider</page>.</description> <description>For override by child panels, such as <page>DNumSlider</page>. Allows changing the output values of the slider.</description> <realm>Client</realm> <args> <arg name="x" type="number"></arg>⤶ <arg name="y" type="number"></arg>⤶ <arg name="x" type="number">The input X coordinate, in range of 0-1.</arg>⤶ <arg name="y" type="number">The input Y coordinate, in range of 0-1.</arg>⤶ </args> <rets> <ret name="" type="number">x</ret>⤶ <ret name="" type="number">y</ret>⤶ <ret name="" type="number">The output X coordinate, in range of 0-1.</ret>⤶ <ret name="" type="number">The output X coordinate, in range of 0-1.</ret>⤶ </rets> </function>