fix: buttons now don't blast my eardrums
This commit is contained in:
parent
0e63a82814
commit
52cc2c5117
|
@ -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) {
|
public void tap(InputEvent event, float x, float y, int count, int button) {
|
||||||
super.tap(event, x, y, count, button);
|
super.tap(event, x, y, count, button);
|
||||||
if (!SagittariusGame.disableSounds) {
|
if (!SagittariusGame.disableSounds) {
|
||||||
buttonclicked.play();
|
buttonclicked.play(SagittariusGame.soundsVolume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -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) {
|
public void tap(InputEvent event, float x, float y, int count, int button) {
|
||||||
super.tap(event, x, y, count, button);
|
super.tap(event, x, y, count, button);
|
||||||
if (!SagittariusGame.disableSounds) {
|
if (!SagittariusGame.disableSounds) {
|
||||||
buttonclicked.play();
|
buttonclicked.play(SagittariusGame.soundsVolume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -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) {
|
public void tap(InputEvent event, float x, float y, int count, int button) {
|
||||||
super.tap(event, x, y, count, button);
|
super.tap(event, x, y, count, button);
|
||||||
if (!SagittariusGame.disableSounds) {
|
if (!SagittariusGame.disableSounds) {
|
||||||
buttonclicked.play();
|
buttonclicked.play(SagittariusGame.soundsVolume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue