Added basic sector classes / Changed play menu dialog

This commit is contained in:
Anuken
2018-07-15 17:19:33 -04:00
parent 9e3af13efc
commit 6a7ff13859
9 changed files with 101 additions and 33 deletions

View File

@@ -0,0 +1,4 @@
package io.anuke.mindustry.ui.dialogs;
public class SectorsDialog{
}

View File

@@ -139,14 +139,14 @@ public class MenuFragment extends Fragment{
}
private void showPlaySelect(){
float w = 200f;
float w = 220f;
float bw = w * 2f + 10f;
FloatingDialog dialog = new FloatingDialog("$text.play");
dialog.addCloseButton();
dialog.content().defaults().height(66f).width(w).padRight(5f);
dialog.content().add(new MenuButton("icon-play-2", "$text.newgame", () -> {
dialog.content().add(new MenuButton("icon-play-2", "$text.campaign", () -> {
dialog.hide();
ui.levels.show();
})).width(bw).colspan(2);
@@ -161,7 +161,10 @@ public class MenuFragment extends Fragment{
}
}));
dialog.content().add(new MenuButton("icon-tutorial", "$text.tutorial", () -> ui.showInfo("The tutorial is currently not yet implemented.")));
dialog.content().add(new MenuButton("icon-editor", "$text.customgame", () -> {
dialog.hide();
ui.levels.show();
}));
dialog.content().row();