Launch confirm dialog
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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(() ->
|
||||
|
||||
Reference in New Issue
Block a user