fix: buttons now don't blast my eardrums

This commit is contained in:
Laureηt 2021-05-27 15:44:06 +02:00
parent 0e63a82814
commit 52cc2c5117
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ public class ButtonTextSounded extends com.kotcrab.vis.ui.widget.VisTextButton {
public void tap(InputEvent event, float x, float y, int count, int button) {
super.tap(event, x, y, count, button);
if (!SagittariusGame.disableSounds) {
buttonclicked.play();
buttonclicked.play(SagittariusGame.soundsVolume);
}
}
});

View file

@ -20,7 +20,7 @@ public class CheckBoxSounded extends com.kotcrab.vis.ui.widget.VisCheckBox {
public void tap(InputEvent event, float x, float y, int count, int button) {
super.tap(event, x, y, count, button);
if (!SagittariusGame.disableSounds) {
buttonclicked.play();
buttonclicked.play(SagittariusGame.soundsVolume);
}
}
});

View file

@ -21,7 +21,7 @@ public class SpinnerSounded extends com.kotcrab.vis.ui.widget.spinner.Spinner {
public void tap(InputEvent event, float x, float y, int count, int button) {
super.tap(event, x, y, count, button);
if (!SagittariusGame.disableSounds) {
buttonclicked.play();
buttonclicked.play(SagittariusGame.soundsVolume);
}
}
});