chore: formatting + clickbutton trimmed
This commit is contained in:
parent
68693e1cff
commit
24e0f429c3
BIN
core/assets/sounds/effects/clickbutton_trim.mp3
Normal file
BIN
core/assets/sounds/effects/clickbutton_trim.mp3
Normal file
Binary file not shown.
BIN
core/assets/sounds/effects/player_death_trim.mp3
Normal file
BIN
core/assets/sounds/effects/player_death_trim.mp3
Normal file
Binary file not shown.
|
@ -7,22 +7,20 @@ import com.badlogic.gdx.audio.Sound;
|
||||||
|
|
||||||
import sagittarius.SagittariusGame;
|
import sagittarius.SagittariusGame;
|
||||||
|
|
||||||
public class ButtonTextSounded extends com.kotcrab.vis.ui.widget.VisTextButton{
|
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){
|
public ButtonTextSounded(String name) {
|
||||||
super(name);
|
super(name);
|
||||||
|
|
||||||
|
|
||||||
this.addListener(new ActorGestureListener() {
|
this.addListener(new ActorGestureListener() {
|
||||||
@Override
|
@Override
|
||||||
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) {
|
||||||
|
buttonclicked.play();
|
||||||
if ( !SagittariusGame.disableSounds){
|
|
||||||
buttonclicked.play();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,22 +7,20 @@ import com.badlogic.gdx.audio.Sound;
|
||||||
|
|
||||||
import sagittarius.SagittariusGame;
|
import sagittarius.SagittariusGame;
|
||||||
|
|
||||||
public class CheckBoxSounded extends com.kotcrab.vis.ui.widget.VisCheckBox{
|
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){
|
public CheckBoxSounded(String name) {
|
||||||
super(name);
|
super(name);
|
||||||
|
|
||||||
|
|
||||||
this.addListener(new ActorGestureListener() {
|
this.addListener(new ActorGestureListener() {
|
||||||
@Override
|
@Override
|
||||||
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) {
|
||||||
|
buttonclicked.play();
|
||||||
if ( !SagittariusGame.disableSounds){
|
|
||||||
buttonclicked.play();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,22 +8,20 @@ import com.badlogic.gdx.audio.Sound;
|
||||||
|
|
||||||
import sagittarius.SagittariusGame;
|
import sagittarius.SagittariusGame;
|
||||||
|
|
||||||
public class SpinnerSounded extends com.kotcrab.vis.ui.widget.spinner.Spinner{
|
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);
|
|
||||||
|
|
||||||
|
public SpinnerSounded(String name, SimpleFloatSpinnerModel SpinnerModel) {
|
||||||
|
super(name, SpinnerModel);
|
||||||
|
|
||||||
this.addListener(new ActorGestureListener() {
|
this.addListener(new ActorGestureListener() {
|
||||||
@Override
|
@Override
|
||||||
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) {
|
||||||
|
buttonclicked.play();
|
||||||
if ( !SagittariusGame.disableSounds){
|
|
||||||
buttonclicked.play();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue