Garry's Mod Wiki

DSlider:TranslateValues

  number, number DSlider:TranslateValues( number x, number y )

Description

For override by child panels, such as DNumSlider. Allows changing the output values of the slider.

Arguments

1 number x
The input X coordinate, in range of 0-1.
2 number y
The input Y coordinate, in range of 0-1.

Returns

1 number
The output X coordinate, in range of 0-1.
2 number
The output X coordinate, in range of 0-1.