summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-05 09:49:11 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-05 09:49:11 +0100
commit99e434d7716c6546937617441f389d34b50f9dc8 (patch)
tree23ca319b3e34f37085a8848282c07b5756a44880 /core/src/ch/asynk
parentfd389225748a39ec948c3d1908dce99606a2b84f (diff)
downloadRustAndDust-99e434d7716c6546937617441f389d34b50f9dc8.zip
RustAndDust-99e434d7716c6546937617441f389d34b50f9dc8.tar.gz
OptionsMenu: add const OPT_PADDING
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/menu/OptionsMenu.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
index f569b8c..d532877 100644
--- a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
@@ -16,6 +16,7 @@ public class OptionsMenu extends Patch
{
public static int PADDING = 40;
public static int OK_PADDING = 10;
+ public static int OPT_PADDING = 10;
public static int TITLE_PADDING = 30;
public static int VSPACING = 5;
public static int HSPACING = 30;
@@ -148,10 +149,10 @@ public class OptionsMenu extends Patch
float dy = (VSPACING + checkLabels[0].getHeight());
graphics.setPosition(x, y);
- graphicsValue.setPosition((x + graphics.getWidth() + 10), y);
+ graphicsValue.setPosition((x + graphics.getWidth() + OPT_PADDING), y);
y += dy;
fxVolume.setPosition(x, y);
- fxVolumeValue.setPosition((x + fxVolume.getWidth() + 10), y);
+ fxVolumeValue.setPosition((x + fxVolume.getWidth() + OPT_PADDING), y);
y += dy;
for (int i = 0; i < checkLabels.length; i++) {
checkLabels[i].setPosition(x, y);