chore: formatting + clickbutton trimmed

This commit is contained in:
Laureηt 2021-05-27 11:46:26 +02:00
parent 68693e1cff
commit 24e0f429c3
6 changed files with 28 additions and 34 deletions

Binary file not shown.

Binary file not shown.

View file

@ -9,18 +9,16 @@ import sagittarius.SagittariusGame;
public class ButtonTextSounded extends com.kotcrab.vis.ui.widget.VisTextButton {
private Sound buttonclicked = Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton.mp3"));
private Sound buttonclicked =
Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton_trim.mp3"));
public ButtonTextSounded(String name) {
super(name);
this.addListener(new ActorGestureListener() {
@Override
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();
}

View file

@ -9,18 +9,16 @@ import sagittarius.SagittariusGame;
public class CheckBoxSounded extends com.kotcrab.vis.ui.widget.VisCheckBox {
private Sound buttonclicked = Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton.mp3"));
private Sound buttonclicked =
Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton_trim.mp3"));
public CheckBoxSounded(String name) {
super(name);
this.addListener(new ActorGestureListener() {
@Override
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();
}

View file

@ -10,18 +10,16 @@ import sagittarius.SagittariusGame;
public class SpinnerSounded extends com.kotcrab.vis.ui.widget.spinner.Spinner {
private Sound buttonclicked = Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton.mp3"));
private Sound buttonclicked =
Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton_trim.mp3"));
public SpinnerSounded(String name, SimpleFloatSpinnerModel SpinnerModel) {
super(name, SpinnerModel);
this.addListener(new ActorGestureListener() {
@Override
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();
}