0 votes

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

asked Aug 11 in Engine by Emanuel (12 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 How to use this Q&A? before posting your first questions.