DSlider help

There’s really no info at all on the wiki. All the method pages about it are non-existant, and googling didn’t give me much info.

I want to detect whether it’s currently being edited, and if it is, then get the X position of the slider.

Usually with derma the source code is more informative then then wiki.

I found that page, but I’m not sure what exactly it is I’m looking for in there…

Edit: oh, wait, that was the source code for the “DNumSlider”, I’m using the"DSlider" element

Edit2: I got it:


DSlider.TranslateValues = function(s, x, y)
	 print(x)
	 return x, y
end

Thanks for the tip :slight_smile: