summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/hud
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-22 18:23:02 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-22 18:23:02 +0100
commit18db2f47e4808eda33f24e1a8571f62344524f71 (patch)
tree8a25ed7261dedb9ded9b7f77dc91e5365f50efba /core/src/ch/asynk/rustanddust/game/hud
parent6ec6e479d1fb91c51c65fecee9045c07fa92300d (diff)
downloadRustAndDust-18db2f47e4808eda33f24e1a8571f62344524f71.zip
RustAndDust-18db2f47e4808eda33f24e1a8571f62344524f71.tar.gz
Sound type/enter: nicer, better
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/hud')
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java b/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java
index ea175c9..ba0f395 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java
@@ -139,7 +139,7 @@ public class OptionsPanel extends Patch
public boolean hit(float x, float y)
{
if (objectivesPanel.hit(x, y)) {
- game.typeSnd.play();
+ game.playType();
objectivesPanel.visible = false;
this.visible = true;
return false;
@@ -148,21 +148,21 @@ public class OptionsPanel extends Patch
if (!visible) return false;
if (fxVolume.hit(x, y) || fxVolumeValue.hit(x, y)) {
- game.typeSnd.play();
cycleFxVolume();
+ game.playType((fxVolumeIdx / 10.0f));
} else if (quit.hit(x, y)) {
- game.typeSnd.play();
+ game.playType();
game.ctrl.hud.askQuitBattle();
return false;
} else if (objectives.hit(x, y)) {
- game.typeSnd.play();
+ game.playType();
this.visible = false;
objectivesPanel.show(game.config.battle);
return false;
} else {
for (int i = 0; i < checkLabels.length; i++) {
if (checkLabels[i].hit(x, y)) {
- game.typeSnd.play();
+ game.playType();
checkValues[i] =! checkValues[i];
}
}