Commit 621032af authored by IgorTimofeev's avatar IgorTimofeev
Browse files

UI sounds feature

parent 0f244640
Pipeline #648093127 passed with stages
in 4 minutes and 11 seconds
......@@ -23,11 +23,9 @@ class Slider(var value: Float, text: String) extends Widget with ClickHandler wi
}
eventHandlers += {
case MouseEvent(MouseEvent.State.Press, MouseEvent.Button.Left) | MouseEvent(MouseEvent.State.Release, MouseEvent.Button.Left) =>
clickSoundSource.play()
case ClickEvent(MouseEvent.Button.Left, pos) =>
calculateValue(pos.x)
clickSoundSource.play()
case DragEvent(_, MouseEvent.Button.Left, pos) =>
calculateValue(pos.x)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment