+1 vote

How could I make a slider with a range?
e.g. something like this: https://refreshless.com/nouislider/

in Engine by (13 points)

From what I've read, Slider inherits from the Range class. So you need to access the Range object when you use a slider. After that, you just need to change the min_value/max_value properties of the Range object.

I think he wants two knobs on the slider to specify a range within a possible range, if that makes sense.

Thanks for clearing that up, Kyle.

All I can think of ATM is to change the ranges, as well as the StyleBoxes of the grabber_area properties of the Hslider and the Vslider. I might be able to come up with something, if given some time.

Did you come up with something?
Still haven't figured anything out myself... : /

Sorry, I tried using a regular Vslider and played around with the properties of that widget. But the API for the Vslider isn't deep enough for that sort of customization. One solution could be to put together a widget with buttons, a color panel, and some containers. But that would require a great deal of trial and error, and I don't have that kind of time.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.