summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-10 12:06:54 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-10 12:06:54 +0100
commit9906c8e7330130156114a2aa0e3181ea701a297b (patch)
tree7c86008bcad2efbbdcf2250f2c9c74b6980e9ffe /core
parent4be2b1444c02474bdf808a7f2b47fc1505be0db6 (diff)
downloadRustAndDust-9906c8e7330130156114a2aa0e3181ea701a297b.zip
RustAndDust-9906c8e7330130156114a2aa0e3181ea701a297b.tar.gz
OptionsMenu: imporve setPosition
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/menu/OptionsMenu.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
index 88c582b..85e3d00 100644
--- a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
@@ -14,9 +14,9 @@ import ch.asynk.rustanddust.RustAndDust;
public class OptionsMenu extends Patch
{
- public static int PADDING = 40;
+ public static int PADDING = 30;
public static int OPT_PADDING = 10;
- public static int TITLE_PADDING = 30;
+ public static int TITLE_PADDING = 20;
public static int VSPACING = 5;
public static int HSPACING = 30;
public static String CHECK = "#";
@@ -145,19 +145,19 @@ public class OptionsMenu extends Patch
y += PADDING;
x += PADDING + HSPACING;
- float dy = (VSPACING + checkLabels[0].getHeight());
graphics.setPosition(x, y);
graphicsValue.setPosition((x + graphics.getWidth() + OPT_PADDING), y);
- y += dy;
+ y += (VSPACING + graphics.getHeight());
fxVolume.setPosition(x, y);
fxVolumeValue.setPosition((x + fxVolume.getWidth() + OPT_PADDING), y);
- y += dy;
+ y += (VSPACING + fxVolume.getHeight());
for (int i = 0; i < checkLabels.length; i++) {
checkLabels[i].setPosition(x, y);
- y += dy;
+ y += (VSPACING + checkLabels[i].getHeight());
}
y += (TITLE_PADDING - VSPACING);
+ x -= PADDING;
title.setPosition(x, y);
}