diff --git a/core/src/io/anuke/mindustry/input/DesktopInput.java b/core/src/io/anuke/mindustry/input/DesktopInput.java index 571071d2dc..b44d85da28 100644 --- a/core/src/io/anuke/mindustry/input/DesktopInput.java +++ b/core/src/io/anuke/mindustry/input/DesktopInput.java @@ -308,7 +308,11 @@ public class DesktopInput extends InputHandler{ } if(Core.input.keyTap(Binding.schematic_menu) && !ui.chatfrag.chatOpen()){ - ui.schematics.show(); + if(ui.schematics.isShown()){ + ui.schematics.hide(); + }else{ + ui.schematics.show(); + } } if(Core.input.keyTap(Binding.clear_building)){ diff --git a/core/src/io/anuke/mindustry/ui/dialogs/ZoneInfoDialog.java b/core/src/io/anuke/mindustry/ui/dialogs/ZoneInfoDialog.java index a3e67d8b4d..e563d9c07c 100644 --- a/core/src/io/anuke/mindustry/ui/dialogs/ZoneInfoDialog.java +++ b/core/src/io/anuke/mindustry/ui/dialogs/ZoneInfoDialog.java @@ -137,15 +137,17 @@ public class ZoneInfoDialog extends FloatingDialog{ }); cont.row(); - - cont.addButton(zone.canConfigure() ? "$configure" : Core.bundle.format("configure.locked", zone.configureObjective.display()), - () -> loadout.show(zone.loadout.core().itemCapacity, zone.getStartingItems(), zone::resetStartingItems, zone::updateLaunchCost, rebuildItems) - ).fillX().pad(3).disabled(b -> !zone.canConfigure()); } cont.marginRight(12f); }); cont.row(); + cont.addButton(zone.canConfigure() ? "$configure" : Core.bundle.format("configure.locked", zone.configureObjective.display()), + () -> loadout.show(zone.loadout.core().itemCapacity, zone.getStartingItems(), zone::resetStartingItems, zone::updateLaunchCost, rebuildItems) + ).fillX().pad(3).disabled(b -> !zone.canConfigure()); + + cont.row(); + Button button = cont.addButton(zone.locked() ? "$uncover" : "$launch", () -> { if(!data.isUnlocked(zone)){ Sounds.unlock.play();