summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-19 11:40:26 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-19 11:40:26 +0100
commit4734056f1125220389348b7f09c0ce7db4e76e02 (patch)
tree172f97258398ea221d7ac5246eeb4aba1af92286 /core/src/ch/asynk/tankontank
parent3ebf5c7da734dddab35393be075d974c8e39c713 (diff)
downloadRustAndDust-4734056f1125220389348b7f09c0ce7db4e76e02.zip
RustAndDust-4734056f1125220389348b7f09c0ce7db4e76e02.tar.gz
OptionsScreen: support Config.regularPawns
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/screens/OptionsScreen.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/OptionsScreen.java b/core/src/ch/asynk/tankontank/screens/OptionsScreen.java
index 07e1f76..01a33a7 100644
--- a/core/src/ch/asynk/tankontank/screens/OptionsScreen.java
+++ b/core/src/ch/asynk/tankontank/screens/OptionsScreen.java
@@ -43,6 +43,7 @@ public class OptionsScreen implements Screen
private CheckBox canCancelCk;
private CheckBox mustValidateCk;
private CheckBox showEnemyPossibilitiesCk;
+ private CheckBox regularPawnsCk;
private CheckBox debugCk;
private Label fxLabel;
private Label fxValue;
@@ -72,6 +73,7 @@ public class OptionsScreen implements Screen
game.config.canCancel = canCancelCk.isChecked();
game.config.mustValidate = mustValidateCk.isChecked();
game.config.showEnemyPossibilities = showEnemyPossibilitiesCk.isChecked();
+ game.config.regularPawns = regularPawnsCk.isChecked();
game.config.debug = debugCk.isChecked();
game.config.fxVolume = fxVolume.getValue();
game.config.battle = scenarios.getSelected();
@@ -95,6 +97,7 @@ public class OptionsScreen implements Screen
canCancelCk = new CheckBox("Can Cancel", skin);
mustValidateCk = new CheckBox("Must Validate", skin);
showEnemyPossibilitiesCk = new CheckBox("Show Enemy Possibilities", skin);
+ regularPawnsCk = new CheckBox("Use Reqular Pawns", skin);
debugCk = new CheckBox("Debug", skin);
fxLabel = new Label("FX volume", skin);
fxValue = new Label(String.format("%.1f", game.config.fxVolume), skin);
@@ -108,6 +111,7 @@ public class OptionsScreen implements Screen
canCancelCk.setChecked(game.config.canCancel);
mustValidateCk.setChecked(game.config.mustValidate);
showEnemyPossibilitiesCk.setChecked(game.config.showEnemyPossibilities);
+ regularPawnsCk.setChecked(game.config.regularPawns);
debugCk.setChecked(game.config.debug);
fxVolume.setValue(game.config.fxVolume);
@@ -134,6 +138,7 @@ public class OptionsScreen implements Screen
stage.addActor(canCancelCk);
stage.addActor(mustValidateCk);
stage.addActor(showEnemyPossibilitiesCk);
+ stage.addActor(regularPawnsCk);
stage.addActor(debugCk);
stage.addActor(fxLabel);
stage.addActor(fxValue);
@@ -166,6 +171,8 @@ public class OptionsScreen implements Screen
y -= 20f;
showEnemyPossibilitiesCk.setPosition(x, y);
y -= 20f;
+ regularPawnsCk.setPosition(x, y);
+ y -= 20f;
debugCk.setPosition(x, y);
y -= 20f;
fxLabel.setPosition(x, y);