All web version bugs fixed

This commit is contained in:
Anuken
2018-07-31 12:57:34 -04:00
parent cc23378758
commit f3b976bdd1
16 changed files with 29 additions and 35 deletions

View File

@@ -56,7 +56,7 @@ public class PausedDialog extends FloatingDialog{
if(!gwt){
ui.host.show();
}else{
ui.showInfo("$text.host.web");
ui.showInfo("$text.web.unsupported");
}
}).disabled(b -> Net.active());

View File

@@ -109,7 +109,9 @@ public class HudFragment extends Fragment{
t.label(() -> fps.get(Gdx.graphics.getFramesPerSecond())).padRight(10);
t.label(() -> tps.get(threads.getTPS())).visible(() -> threads.isEnabled());
t.row();
t.label(() -> ping.get(Net.getPing())).visible(() -> Net.client() && !gwt).colspan(2);
if(Net.hasClient()){
t.label(() -> ping.get(Net.getPing())).visible(() -> Net.client() && !gwt).colspan(2);
}
}).size(-1).visible(() -> Settings.getBool("fps")).get();
//make wave box appear below rest of menu

View File

@@ -153,11 +153,11 @@ public class MenuFragment extends Fragment{
dialog.content().row();
dialog.content().add(new MenuButton("icon-add", "$text.joingame", () -> {
if(Platform.instance.canJoinGame()){
if(!gwt){
ui.join.show();
dialog.hide();
}else{
ui.showInfo("$text.multiplayer.web");
ui.showInfo("$text.web.unsupported");
}
}));