From 006c796da708c2923985c16b0873625b863ce660 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 23 Aug 2021 10:03:26 -0400 Subject: [PATCH] Added database button in menu --- core/assets/bundles/bundle.properties | 1 + core/src/mindustry/ui/fragments/MenuFragment.java | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 750ba063be..c9907d3140 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -93,6 +93,7 @@ level.mode = Gamemode: coreattack = < Core is under attack! > nearpoint = [[ [scarlet]LEAVE DROP POINT IMMEDIATELY[] ]\nannihilation imminent database = Core Database +database.button = Database savegame = Save Game loadgame = Load Game joingame = Join Game diff --git a/core/src/mindustry/ui/fragments/MenuFragment.java b/core/src/mindustry/ui/fragments/MenuFragment.java index ca3001f5b5..393ca070ba 100644 --- a/core/src/mindustry/ui/fragments/MenuFragment.java +++ b/core/src/mindustry/ui/fragments/MenuFragment.java @@ -163,12 +163,14 @@ public class MenuFragment extends Fragment{ new Buttoni("@customgame", Icon.terrain, () -> checkPlay(ui.custom::show)), new Buttoni("@loadgame", Icon.download, () -> checkPlay(ui.load::show)) ), + new Buttoni("@database.button", Icon.menu, + new Buttoni("@schematics", Icon.paste, ui.schematics::show), + new Buttoni("@database", Icon.book, ui.database::show), + new Buttoni("@about.button", Icon.info, ui.about::show) + ), new Buttoni("@editor", Icon.terrain, () -> checkPlay(ui.maps::show)), steam ? new Buttoni("@workshop", Icon.steam, platform::openWorkshop) : null, new Buttoni("@mods", Icon.book, ui.mods::show), - //not enough space for this button - //new Buttoni("@schematics", Icon.paste, ui.schematics::show), new Buttoni("@settings", Icon.settings, ui.settings::show), - new Buttoni("@about.button", Icon.info, ui.about::show), new Buttoni("@quit", Icon.exit, Core.app::exit) );