There's really [URL="http://wiki.garrysmod.com/page/Category:DSlider"]no info at all on the wiki[/URL]. 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 [URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/vgui/dnumslider.lua"]source code[/URL] is more informative then then wiki.
[QUOTE=StonedPenguin;49630500]Usually with derma the [URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/vgui/dnumslider.lua"]source code[/URL] is more informative then then wiki.[/QUOTE]
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[URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/vgui/dslider.lua"] "DSlider" element[/URL]
Edit2: I got it:
[CODE]DSlider.TranslateValues = function(s, x, y)
print(x)
return x, y
end[/CODE]
Thanks for the tip :)
Sorry, you need to Log In to post a reply to this thread.