Basic UI improvements
This commit is contained in:
@@ -12,8 +12,7 @@ import io.anuke.mindustry.ui.BorderImage;
|
|||||||
|
|
||||||
import static io.anuke.mindustry.Vars.world;
|
import static io.anuke.mindustry.Vars.world;
|
||||||
|
|
||||||
public class
|
public class CustomGameDialog extends FloatingDialog{
|
||||||
CustomGameDialog extends FloatingDialog{
|
|
||||||
private MapPlayDialog dialog = new MapPlayDialog();
|
private MapPlayDialog dialog = new MapPlayDialog();
|
||||||
|
|
||||||
public CustomGameDialog(){
|
public CustomGameDialog(){
|
||||||
@@ -33,6 +32,7 @@ CustomGameDialog extends FloatingDialog{
|
|||||||
|
|
||||||
Table maps = new Table();
|
Table maps = new Table();
|
||||||
maps.marginRight(14);
|
maps.marginRight(14);
|
||||||
|
maps.marginBottom(55f);
|
||||||
ScrollPane pane = new ScrollPane(maps);
|
ScrollPane pane = new ScrollPane(maps);
|
||||||
pane.setFadeScrollBars(false);
|
pane.setFadeScrollBars(false);
|
||||||
|
|
||||||
|
|||||||
@@ -82,14 +82,14 @@ public class MenuFragment extends Fragment{
|
|||||||
container.defaults().size(size).pad(5).padTop(4f);
|
container.defaults().size(size).pad(5).padTop(4f);
|
||||||
|
|
||||||
MobileButton
|
MobileButton
|
||||||
play = new MobileButton("icon-play-2", isize, "$campaign", ui.deploy::show),
|
play = new MobileButton("icon-play-2", isize, "$campaign", ui.deploy::show),
|
||||||
custom = new MobileButton("icon-play-custom", isize, "$customgame", ui.custom::show),
|
custom = new MobileButton("icon-play-custom", isize, "$customgame", ui.custom::show),
|
||||||
maps = new MobileButton("icon-load", isize, "$loadgame", ui.load::show),
|
maps = new MobileButton("icon-load", isize, "$loadgame", ui.load::show),
|
||||||
join = new MobileButton("icon-add", isize, "$joingame", ui.join::show),
|
join = new MobileButton("icon-add", isize, "$joingame", ui.join::show),
|
||||||
editor = new MobileButton("icon-editor", isize, "$editor", ui.maps::show),
|
editor = new MobileButton("icon-editor", isize, "$editor", ui.maps::show),
|
||||||
tools = new MobileButton("icon-tools", isize, "$settings", ui.settings::show),
|
tools = new MobileButton("icon-tools", isize, "$settings", ui.settings::show),
|
||||||
donate = new MobileButton("icon-donate", isize, "$donate", () -> Core.net.openURI(donationURL)),
|
donate = new MobileButton("icon-donate", isize, "$donate", () -> Core.net.openURI(donationURL)),
|
||||||
exit = new MobileButton("icon-exit", isize, "$quit", () -> Core.app.exit());
|
exit = new MobileButton("icon-exit", isize, "$quit", () -> Core.app.exit());
|
||||||
|
|
||||||
if(!Core.graphics.isPortrait()){
|
if(!Core.graphics.isPortrait()){
|
||||||
container.marginTop(60f);
|
container.marginTop(60f);
|
||||||
@@ -135,7 +135,7 @@ public class MenuFragment extends Fragment{
|
|||||||
|
|
||||||
|
|
||||||
float width = 230f;
|
float width = 230f;
|
||||||
String background = "flat";
|
String background = "flat-trans";
|
||||||
|
|
||||||
container.left();
|
container.left();
|
||||||
container.add().width(Core.graphics.getWidth()/10f);
|
container.add().width(Core.graphics.getWidth()/10f);
|
||||||
|
|||||||
Reference in New Issue
Block a user