How to set volumn slider in phaser js? like this showing below image and also tell me how to set defult value of the slider if i change screen slider value become zero.
var print2;
this.rexUI.add.slider({
x: 400,
y: 230,
width: 200,
height: 30,
orientation: 'x',
track: this.rexUI.add.roundRectangle(0, 0, 0, 0, 10, COLOR_DARK),
indicator: this.rexUI.add.roundRectangle(0, 0, 0, 0, 10, COLOR_PRIMARY),
thumb: this.rexUI.add.roundRectangle(0, 0, 0, 0, 10, COLOR_PRIMARY),
input: 'click', // 'drag'|'click'
easeValue: { duration: 250 },
valuechangeCallback: function(value) {
value *= 10
value = Math.floor(value * 10)
print2 = value;
console.log(print2);
},
})
.layout();
