diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-07 10:06:33 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-07 10:06:33 +0100 |
commit | 857015ded40dbf165f52301da89b7180447a11d6 (patch) | |
tree | ea9baff7447ac0ef2501b168c1b26e6c2c6ef912 /core/src/ch/asynk/rustanddust/menu | |
parent | 04bf681a8ad967a0fec3faead9682ba9d5b42be2 (diff) | |
download | RustAndDust-857015ded40dbf165f52301da89b7180447a11d6.zip RustAndDust-857015ded40dbf165f52301da89b7180447a11d6.tar.gz |
Config: add fxStrings
Diffstat (limited to 'core/src/ch/asynk/rustanddust/menu')
-rw-r--r-- | core/src/ch/asynk/rustanddust/menu/OptionsMenu.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java index 6916714..6a6ef95 100644 --- a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java +++ b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java @@ -29,7 +29,6 @@ public class OptionsMenu extends Patch "Show Targets", "Show Moves", }; - private String [] fxStrings = { "OFF", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "ON" }; private float checkDy; private Label title; @@ -82,7 +81,7 @@ public class OptionsMenu extends Patch checkValues[1] = game.config.showEnemyPossibilities; checkValues[0] = game.config.debug; fxVolumeIdx = (int) (game.config.fxVolume * 10); - fxVolumeValue.write(fxStrings[fxVolumeIdx], fxVolumeValue.getX(), fxVolumeValue.getY()); + fxVolumeValue.write(game.config.fxStrings[fxVolumeIdx], fxVolumeValue.getX(), fxVolumeValue.getY()); graphicsIdx = game.config.graphics.i; graphicsValue.write(game.config.graphics.s, graphicsValue.getX(), graphicsValue.getY()); } @@ -103,7 +102,7 @@ public class OptionsMenu extends Patch { fxVolumeIdx += 1; if (fxVolumeIdx > 10) fxVolumeIdx = 0; - fxVolumeValue.write(fxStrings[fxVolumeIdx], fxVolumeValue.getX(), fxVolumeValue.getY()); + fxVolumeValue.write(game.config.fxStrings[fxVolumeIdx], fxVolumeValue.getX(), fxVolumeValue.getY()); } private void cycleGraphics() |