Implemented and tested custom maps for multiplayer

This commit is contained in:
Anuken
2018-01-22 17:07:07 -05:00
parent 96170a1a84
commit 7fb6b4cb9f
8 changed files with 146 additions and 40 deletions

View File

@@ -57,11 +57,7 @@ public class PausedDialog extends FloatingDialog{
if(!Vars.gwt) {
content().addButton("$text.hostserver", () -> {
if (Vars.world.getMap().custom) {
ui.showError("$text.nohost");
} else {
ui.host.show();
}
ui.host.show();
}).disabled(b -> Net.active());
}
@@ -100,11 +96,7 @@ public class PausedDialog extends FloatingDialog{
lo.cell.disabled(b -> Net.active());
imagebutton ho = new imagebutton("icon-host", isize, () -> {
if(Vars.world.getMap().custom){
ui.showError("$text.nohost");
}else {
ui.host.show();
}
ui.host.show();
});
ho.text("$text.host").padTop(4f);
ho.cell.disabled(b -> Net.active());