Launch confirm dialog

This commit is contained in:
Anuken
2019-02-06 08:52:30 -05:00
parent 1bdea1b8d8
commit d0c6d9a489
6 changed files with 3 additions and 15 deletions

View File

@@ -140,8 +140,6 @@ public class MapsDialog extends FloatingDialog{
t.add(map.meta.description()).growX().wrap().padTop(2);
t.row();
t.add("$editor.oregen.info").padRight(10).color(Color.GRAY);
t.row();
t.add(map.meta.hasOreGen() ? "$on" : "$off").padTop(2);
}).height(mapsize).width(mapsize);
table.row();

View File

@@ -219,7 +219,7 @@ public class HudFragment extends Fragment{
parent.fill(t -> {
t.top().visible(() -> !state.is(State.menu));
TextButton button = Elements.newButton("$launch", Call::launchZone);
TextButton button = Elements.newButton("$launch", () -> ui.showConfirm("$launch", "$launch.confirm", Call::launchZone));
button.getStyle().disabledFontColor = Color.WHITE;
button.visible(() ->