diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-30 23:04:49 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-30 23:04:49 +0100 |
commit | 337180bb3c3a78ccfae1668c8c326e5607347bf5 (patch) | |
tree | a7587accfd48989987ff952cf2045cd47b5f0174 /core/src | |
parent | 1b6de97c39d1373f84208b9e5b0124c65315c55b (diff) | |
download | RustAndDust-337180bb3c3a78ccfae1668c8c326e5607347bf5.zip RustAndDust-337180bb3c3a78ccfae1668c8c326e5607347bf5.tar.gz |
OptionsMenu: add autoPath
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/menu/OptionsMenu.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java index 05ba06f..f39ea39 100644 --- a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java +++ b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java @@ -24,6 +24,7 @@ public class OptionsMenu extends Patch private String [] checkStrings = { "Debug", + "Automatic Path", "Show Enemy Possibilities", "Show Moves Assists", "Show Targets", @@ -76,10 +77,11 @@ public class OptionsMenu extends Patch private void getValues() { - checkValues[4] = game.config.showMoves; - checkValues[3] = game.config.showTargets; - checkValues[2] = game.config.showMoveAssists; - checkValues[1] = game.config.showEnemyPossibilities; + checkValues[5] = game.config.showMoves; + checkValues[4] = game.config.showTargets; + checkValues[3] = game.config.showMoveAssists; + checkValues[2] = game.config.showEnemyPossibilities; + checkValues[1] = game.config.autoPath; checkValues[0] = game.config.debug; fxVolumeIdx = (int) (game.config.fxVolume * 10); fxVolumeValue.write(fxStrings[fxVolumeIdx], fxVolumeValue.getX(), fxVolumeValue.getY()); @@ -89,10 +91,11 @@ public class OptionsMenu extends Patch private boolean apply() { - game.config.showMoves = checkValues[4]; - game.config.showTargets = checkValues[3]; - game.config.showMoveAssists = checkValues[2]; - game.config.showEnemyPossibilities = checkValues[1]; + game.config.showMoves = checkValues[5]; + game.config.showTargets = checkValues[4]; + game.config.showMoveAssists = checkValues[3]; + game.config.showEnemyPossibilities = checkValues[2]; + game.config.autoPath = checkValues[1]; game.config.debug = checkValues[0]; game.config.fxVolume = (fxVolumeIdx / 10.0f); game.config.graphics = game.config.graphics.get(graphicsIdx); |