From ec7bb78ee4a005d1e76fdb84ccb691a5e8dbe5b8 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 6 Jul 2019 14:08:43 -0400 Subject: [PATCH] Basic UI improvements --- .../mindustry/ui/dialogs/CustomGameDialog.java | 4 ++-- .../mindustry/ui/fragments/MenuFragment.java | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core/src/io/anuke/mindustry/ui/dialogs/CustomGameDialog.java b/core/src/io/anuke/mindustry/ui/dialogs/CustomGameDialog.java index 0aabd0272b..8ba76e7d20 100644 --- a/core/src/io/anuke/mindustry/ui/dialogs/CustomGameDialog.java +++ b/core/src/io/anuke/mindustry/ui/dialogs/CustomGameDialog.java @@ -12,8 +12,7 @@ import io.anuke.mindustry.ui.BorderImage; import static io.anuke.mindustry.Vars.world; -public class -CustomGameDialog extends FloatingDialog{ +public class CustomGameDialog extends FloatingDialog{ private MapPlayDialog dialog = new MapPlayDialog(); public CustomGameDialog(){ @@ -33,6 +32,7 @@ CustomGameDialog extends FloatingDialog{ Table maps = new Table(); maps.marginRight(14); + maps.marginBottom(55f); ScrollPane pane = new ScrollPane(maps); pane.setFadeScrollBars(false); diff --git a/core/src/io/anuke/mindustry/ui/fragments/MenuFragment.java b/core/src/io/anuke/mindustry/ui/fragments/MenuFragment.java index 147aa6ea18..cc00cf2c44 100644 --- a/core/src/io/anuke/mindustry/ui/fragments/MenuFragment.java +++ b/core/src/io/anuke/mindustry/ui/fragments/MenuFragment.java @@ -82,14 +82,14 @@ public class MenuFragment extends Fragment{ container.defaults().size(size).pad(5).padTop(4f); MobileButton - play = new MobileButton("icon-play-2", isize, "$campaign", ui.deploy::show), - custom = new MobileButton("icon-play-custom", isize, "$customgame", ui.custom::show), - maps = new MobileButton("icon-load", isize, "$loadgame", ui.load::show), - join = new MobileButton("icon-add", isize, "$joingame", ui.join::show), - editor = new MobileButton("icon-editor", isize, "$editor", ui.maps::show), - tools = new MobileButton("icon-tools", isize, "$settings", ui.settings::show), - donate = new MobileButton("icon-donate", isize, "$donate", () -> Core.net.openURI(donationURL)), - exit = new MobileButton("icon-exit", isize, "$quit", () -> Core.app.exit()); + play = new MobileButton("icon-play-2", isize, "$campaign", ui.deploy::show), + custom = new MobileButton("icon-play-custom", isize, "$customgame", ui.custom::show), + maps = new MobileButton("icon-load", isize, "$loadgame", ui.load::show), + join = new MobileButton("icon-add", isize, "$joingame", ui.join::show), + editor = new MobileButton("icon-editor", isize, "$editor", ui.maps::show), + tools = new MobileButton("icon-tools", isize, "$settings", ui.settings::show), + donate = new MobileButton("icon-donate", isize, "$donate", () -> Core.net.openURI(donationURL)), + exit = new MobileButton("icon-exit", isize, "$quit", () -> Core.app.exit()); if(!Core.graphics.isPortrait()){ container.marginTop(60f); @@ -135,7 +135,7 @@ public class MenuFragment extends Fragment{ float width = 230f; - String background = "flat"; + String background = "flat-trans"; container.left(); container.add().width(Core.graphics.getWidth()/10f);