diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-05 11:42:13 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-05 11:42:13 +0200 |
commit | ddca67e08b2d9c708a57a56ecca53588ee81147f (patch) | |
tree | 46879c8c2dc9cd4d94a7535ee67cdf170bfd4d7e /core | |
parent | 24645c441330a33db1cc2d90d8f097a2adf0b868 (diff) | |
download | RustAndDust-ddca67e08b2d9c708a57a56ecca53588ee81147f.zip RustAndDust-ddca67e08b2d9c708a57a56ecca53588ee81147f.tar.gz |
Hud: QUIT_BATTLE -> EXIT_BATTLE
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Hud.java | 10 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java | 20 |
2 files changed, 15 insertions, 15 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Hud.java b/core/src/ch/asynk/rustanddust/game/Hud.java index 01323f8..d8c112c 100644 --- a/core/src/ch/asynk/rustanddust/game/Hud.java +++ b/core/src/ch/asynk/rustanddust/game/Hud.java @@ -51,7 +51,7 @@ public class Hud implements Disposable, Animation EXIT_BOARD, ABORT_TURN, END_DEPLOYMENT, - QUIT_BATTLE, + EXIT_BATTLE, } private OkCancelAction okCancelAction; @@ -223,7 +223,7 @@ public class Hud implements Disposable, Animation ctrl.postAnswer(okCancelAction, okCancel.ok); } else if (dialog == stats) { game.playEnter(); - ctrl.postAnswer(OkCancelAction.QUIT_BATTLE, true); + ctrl.postAnswer(OkCancelAction.EXIT_BATTLE, true); } else game.playType(); @@ -295,10 +295,10 @@ public class Hud implements Disposable, Animation pushDialog(okCancel); } - public void askQuitBattle() + public void askExitBattle() { - this.okCancelAction = OkCancelAction.QUIT_BATTLE; - okCancel.show("Quit this battle ?"); + this.okCancelAction = OkCancelAction.EXIT_BATTLE; + okCancel.show("Exit this battle ?"); pushDialog(okCancel); } diff --git a/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java b/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java index 0bdaaf9..bba7382 100644 --- a/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java +++ b/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java @@ -31,7 +31,7 @@ public class OptionsPanel extends Patch private Label fxVolumeValue; private Label objectives; private ObjectivesPanel objectivesPanel; - private Label quit; + private Label exit; private Label [] checkLabels; private boolean [] checkValues; @@ -45,7 +45,7 @@ public class OptionsPanel extends Patch this.fxVolumeValue = new Label(game.font, LABEL_PADDING); this.objectives = new Label("Battle Objectives", game.font, LABEL_PADDING); this.objectivesPanel = new ObjectivesPanel(game); - this.quit = new Label("Quit Battle", game.font, LABEL_PADDING); + this.exit = new Label("Exit Battle", game.font, LABEL_PADDING); this.visible = false; this.checkValues = new boolean[checkStrings.length]; this.checkLabels = new Label[checkStrings.length]; @@ -79,7 +79,7 @@ public class OptionsPanel extends Patch for (int i = 0; i < checkLabels.length; i++) h += checkLabels[i].getHeight(); h += objectives.getHeight(); - h += quit.getHeight(); + h += exit.getHeight(); h += (2 * PADDING); float w = (objectives.getWidth()); @@ -109,8 +109,8 @@ public class OptionsPanel extends Patch y += checkLabels[i].getHeight(); } - quit.setPosition(x,y); - y += quit.getHeight(); + exit.setPosition(x,y); + y += exit.getHeight(); y += TITLE_PADDING; x -= PADDING; @@ -150,9 +150,9 @@ public class OptionsPanel extends Patch if (fxVolume.hit(x, y) || fxVolumeValue.hit(x, y)) { cycleFxVolume(); game.playType((fxVolumeIdx / 10.0f)); - } else if (quit.hit(x, y)) { + } else if (exit.hit(x, y)) { game.playType(); - game.ctrl.hud.askQuitBattle(); + game.ctrl.hud.askExitBattle(); return false; } else if (objectives.hit(x, y)) { game.playType(); @@ -196,7 +196,7 @@ public class OptionsPanel extends Patch objectives.dispose(); fxVolume.dispose(); fxVolumeValue.dispose(); - quit.dispose(); + exit.dispose(); for (int i = 0; i < checkLabels.length; i++) checkLabels[i].dispose(); } @@ -211,7 +211,7 @@ public class OptionsPanel extends Patch objectives.draw(batch); fxVolume.draw(batch); fxVolumeValue.draw(batch); - quit.draw(batch); + exit.draw(batch); for (int i = 0; i < checkLabels.length; i++) { Label l = checkLabels[i]; l.draw(batch); @@ -230,6 +230,6 @@ public class OptionsPanel extends Patch objectives.drawDebug(shapes); fxVolume.drawDebug(shapes); fxVolumeValue.drawDebug(shapes); - quit.drawDebug(shapes); + exit.drawDebug(shapes); } } |