Added host/join info text
This commit is contained in:
@@ -40,10 +40,12 @@ public class HostDialog extends FloatingDialog{
|
||||
});
|
||||
}).size(50f, 54f).get();
|
||||
button.update(() -> button.getStyle().imageUpColor = player.getColor());
|
||||
}).width(w).height(70f).pad(4);
|
||||
}).width(w).height(70f).pad(4).colspan(3);
|
||||
|
||||
content().row();
|
||||
|
||||
content().add().width(65f);
|
||||
|
||||
content().addButton("$text.host", () -> {
|
||||
ui.loadfrag.show("$text.hosting");
|
||||
Timers.runTask(5f, () -> {
|
||||
@@ -57,5 +59,7 @@ public class HostDialog extends FloatingDialog{
|
||||
hide();
|
||||
});
|
||||
}).width(w).height(70f);
|
||||
|
||||
content().addButton("?", () -> ui.showInfo("$text.host.info")).size(65f, 70f).padLeft(6f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,8 +38,14 @@ public class JoinDialog extends FloatingDialog {
|
||||
|
||||
loadServers();
|
||||
|
||||
buttons().add().width(60f);
|
||||
buttons().add().growX();
|
||||
|
||||
addCloseButton();
|
||||
|
||||
buttons().add().growX();
|
||||
buttons().addButton("?", () -> ui.showInfo("$text.join.info")).size(60f, 64f);
|
||||
|
||||
add = new FloatingDialog("$text.joingame.title");
|
||||
add.content().add("$text.joingame.ip").padRight(5f).left();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user