summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/menu
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-11-27 14:58:02 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2019-11-27 14:58:02 +0100
commit42fd693af547cbfbc0a3a24332aaad0b15bb176f (patch)
tree507854b649e497e17c2a189f9d2ed6f6b3973260 /core/src/ch/asynk/rustanddust/menu
parent53eb07e4913bf36b10b110872af3e6dca27b4f17 (diff)
downloadRustAndDust-42fd693af547cbfbc0a3a24332aaad0b15bb176f.zip
RustAndDust-42fd693af547cbfbc0a3a24332aaad0b15bb176f.tar.gz
UI : enlarge menus
Diffstat (limited to 'core/src/ch/asynk/rustanddust/menu')
-rw-r--r--core/src/ch/asynk/rustanddust/menu/MainMenu.java4
-rw-r--r--core/src/ch/asynk/rustanddust/menu/NewGameMenu.java2
-rw-r--r--core/src/ch/asynk/rustanddust/menu/OptionsMenu.java17
-rw-r--r--core/src/ch/asynk/rustanddust/menu/PlayMenu.java2
-rw-r--r--core/src/ch/asynk/rustanddust/menu/ResumeMenu.java6
-rw-r--r--core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java2
6 files changed, 18 insertions, 15 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/MainMenu.java b/core/src/ch/asynk/rustanddust/menu/MainMenu.java
index b02a1e4..44baab3 100644
--- a/core/src/ch/asynk/rustanddust/menu/MainMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/MainMenu.java
@@ -8,8 +8,8 @@ import ch.asynk.rustanddust.RustAndDust;
public class MainMenu extends Patch implements MenuCtrl.Panel
{
- private static final int PADDING = 40;
- private static final int VSPACING = 8;
+ private static final int PADDING = 60;
+ private static final int VSPACING = 40;
enum Item
{
diff --git a/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java b/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java
index a7002fb..4316ba1 100644
--- a/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java
@@ -10,7 +10,7 @@ import ch.asynk.rustanddust.game.hud.ObjectivesPanel;
public class NewGameMenu extends Patch implements MenuCtrl.Panel
{
- public static int PADDING = 50;
+ public static int PADDING = 60;
public static int TITLE_PADDING = 35;
public static int VSPACING = 30;
diff --git a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
index c3c6c11..613c63e 100644
--- a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
@@ -12,11 +12,12 @@ import ch.asynk.rustanddust.RustAndDust;
public class OptionsMenu extends Patch implements MenuCtrl.Panel
{
- public static int PADDING = 30;
- public static int OPT_PADDING = 10;
- public static int TITLE_PADDING = 10;
+ public static int PADDING = 60;
+ public static int OPT_PADDING = 20;
+ public static int TITLE_PADDING = 20;
public static int LABEL_PADDING = 10;
- public static int HSPACING = 30;
+ public static int HSPACING = 40;
+ public static int VSPACING = 20;
public static String CHECK = "#";
private final RustAndDust game;
@@ -114,6 +115,8 @@ public class OptionsMenu extends Patch implements MenuCtrl.Panel
h += checkLabels[i].getHeight();
h += graphics.getHeight();
h += fxVolume.getHeight();
+ h += (VSPACING * (checkLabels.length - 1));
+ h += VSPACING * 2;
float w = title.getWidth();
for (int i = 0; i < checkLabels.length; i++) {
@@ -135,13 +138,13 @@ public class OptionsMenu extends Patch implements MenuCtrl.Panel
graphics.setPosition(x, y);
graphicsValue.setPosition((x + graphics.getWidth() + OPT_PADDING), y);
- y += graphics.getHeight();
+ y += graphics.getHeight() + VSPACING;
fxVolume.setPosition(x, y);
fxVolumeValue.setPosition((x + fxVolume.getWidth() + OPT_PADDING), y);
- y += fxVolume.getHeight();
+ y += fxVolume.getHeight() + VSPACING;
for (int i = 0; i < checkLabels.length; i++) {
checkLabels[i].setPosition(x, y);
- y += checkLabels[i].getHeight();
+ y += checkLabels[i].getHeight() + VSPACING;
}
y += TITLE_PADDING;
x -= PADDING;
diff --git a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java
index 1fc206f..9dc639c 100644
--- a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java
@@ -15,7 +15,7 @@ import ch.asynk.rustanddust.util.GameRecord;
public class PlayMenu extends Patch implements MenuCtrl.Panel
{
- public static int PADDING = 40;
+ public static int PADDING = 60;
public static int TITLE_PADDING = 30;
private final RustAndDust game;
diff --git a/core/src/ch/asynk/rustanddust/menu/ResumeMenu.java b/core/src/ch/asynk/rustanddust/menu/ResumeMenu.java
index 70ff025..de2de48 100644
--- a/core/src/ch/asynk/rustanddust/menu/ResumeMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/ResumeMenu.java
@@ -9,9 +9,9 @@ import ch.asynk.rustanddust.game.Config;
public class ResumeMenu extends Patch implements MenuCtrl.Panel
{
- private static final int PADDING = 40;
- private static final int VSPACING = 8;
- private static final int TITLE_SPACING = 12;
+ private static final int PADDING = 60;
+ private static final int VSPACING = 20;
+ private static final int TITLE_SPACING = 30;
enum Item
{
diff --git a/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java b/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java
index d1c24a5..427a938 100644
--- a/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/TutorialsMenu.java
@@ -9,7 +9,7 @@ import ch.asynk.rustanddust.RustAndDust;
public class TutorialsMenu extends Patch implements MenuCtrl.Panel
{
- public static int PADDING = 40;
+ public static int PADDING = 60;
public static int TITLE_PADDING = 30;
private final RustAndDust game;