From 99e434d7716c6546937617441f389d34b50f9dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 5 Nov 2015 09:49:11 +0100 Subject: OptionsMenu: add const OPT_PADDING --- core/src/ch/asynk/rustanddust/menu/OptionsMenu.java | 5 +++-- 1 file 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); -- cgit v1.1-2-g2b99