mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-22 20:48:55 +07:00
Added sound to button select
Added sound to button select Disabled debug mode
This commit is contained in:
parent
5d6a140b54
commit
5adbd55103
@ -40,6 +40,12 @@ public class EscapePanel extends WidgetGroup implements Disposable {
|
|||||||
Diablo.assets.load(optionsDescriptor);
|
Diablo.assets.load(optionsDescriptor);
|
||||||
Diablo.assets.finishLoadingAsset(optionsDescriptor);
|
Diablo.assets.finishLoadingAsset(optionsDescriptor);
|
||||||
options = new EscapeButton(Diablo.assets.get(optionsDescriptor).getTexture(0));
|
options = new EscapeButton(Diablo.assets.get(optionsDescriptor).getTexture(0));
|
||||||
|
options.addListener(new ClickListener() {
|
||||||
|
@Override
|
||||||
|
public void clicked(InputEvent event, float x, float y) {
|
||||||
|
Diablo.audio.play(2, true); // select.wav
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
Diablo.assets.load(exitDescriptor);
|
Diablo.assets.load(exitDescriptor);
|
||||||
Diablo.assets.finishLoadingAsset(exitDescriptor);
|
Diablo.assets.finishLoadingAsset(exitDescriptor);
|
||||||
@ -47,6 +53,7 @@ public class EscapePanel extends WidgetGroup implements Disposable {
|
|||||||
exit.addListener(new ClickListener() {
|
exit.addListener(new ClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void clicked(InputEvent event, float x, float y) {
|
public void clicked(InputEvent event, float x, float y) {
|
||||||
|
Diablo.audio.play(2, true); // select.wav
|
||||||
Diablo.client.clearAndSet(new MenuScreen());
|
Diablo.client.clearAndSet(new MenuScreen());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -57,6 +64,7 @@ public class EscapePanel extends WidgetGroup implements Disposable {
|
|||||||
returntogame.addListener(new ClickListener() {
|
returntogame.addListener(new ClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void clicked(InputEvent event, float x, float y) {
|
public void clicked(InputEvent event, float x, float y) {
|
||||||
|
Diablo.audio.play(2, true); // select.wav
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -116,7 +124,7 @@ public class EscapePanel extends WidgetGroup implements Disposable {
|
|||||||
setFillParent(true);
|
setFillParent(true);
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
setTouchable(Touchable.childrenOnly);
|
setTouchable(Touchable.childrenOnly);
|
||||||
setDebug(true, true);
|
//setDebug(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user