Garry's Mod Wiki

DSlider:ResetToDefaultValue

  DSlider:ResetToDefaultValue()

Description

This function is called by the DSlider when user middle mouse clicks on the draggable knob of the slider.

You are meant to override this function to do reset the slider to desired defaults on both axes.

By default, will reset the slider to 0.5 on both axes.