I have a screen where the user can set the size, weight etc of a character using sliders. These values can only be set at creation.
I reuse the same scene however to allow the player to view the characters stats. In this screen I still want to display the slider so the player can see their original setting, but I don’t want them to be able to move them.
I’ve tried putting this into the slider listener but it had no effect:
event.target.value = originalValue
Is there any way to set the slider’s value manually, other than at the point of creation?
This might seem like a strange thing to need given that it is called a slider and not a stayer but (for me at least) it would be very handy.
My only alternative is to manually create a second slider object which is just the slider line and dot but with no touch listener, and render that instead of the original slider.