This commit is contained in:
RandomityGuy 2022-12-18 01:29:17 +05:30
parent ec6e7785e5
commit cad8606057

View file

@ -20,6 +20,9 @@ class GuiSlider extends GuiImage {
sliderValue = (mouseState.position.x - renderRect.position.x - bmp.width / 2) / renderRect.extent.x;
sliderValue = Util.clamp(sliderValue, 0, 1);
if (this.pressedAction != null)
this.pressedAction(new GuiEvent(this));
if (slidingSound != null)
slidingSound.pause = false;
}