Garry's Mod Wiki

DSlider:ResetToDefaultValue

  DSlider:ResetToDefaultValue()

Recently Added

This was recently added in version (2024.05.02). It might only be available on the Dev Branch right now.

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.