mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
slider
This commit is contained in:
parent
ec6e7785e5
commit
cad8606057
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue