diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-19 20:47:34 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-19 20:47:34 +0200 |
commit | e663e9f9eaa35cc2d0ceb5f3a75e7d1877a7c75b (patch) | |
tree | 7274aa8ac683d27854fe3dbd01c98348b7d0ee04 | |
parent | 0396ad70e535412501fe94736dd1e08ed2cf9ce5 (diff) | |
download | RustAndDust-e663e9f9eaa35cc2d0ceb5f3a75e7d1877a7c75b.zip RustAndDust-e663e9f9eaa35cc2d0ceb5f3a75e7d1877a7c75b.tar.gz |
PlayMeny: fix width calculation
-rw-r--r-- | core/src/ch/asynk/rustanddust/menu/PlayMenu.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java index 2472952..8babc57 100644 --- a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java +++ b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java @@ -93,7 +93,7 @@ public class PlayMenu extends Patch implements MenuCtrl.Panel h += (2 * padding); h = Math.min(h, Gdx.graphics.getHeight() - 60); - float w = title.getWidth() + PADDING + gameModeWidth; + float w = title.getWidth() + PADDING + gameModeWidth + 5 + gameMode.getWidth(); if (list.getWidth() > w) w = list.getWidth(); if (list.getBestWidth() > w) w = list.getBestWidth(); w += (2 * padding); |