From 5223f088e7f6c1de8f2d92da1cc99aee129e7131 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 28 Mar 2026 15:27:16 -0400 Subject: [PATCH] Minor console fixes --- core/src/mindustry/ui/fragments/ConsoleFragment.java | 5 +++++ core/src/mindustry/ui/fragments/HudFragment.java | 1 + 2 files changed, 6 insertions(+) diff --git a/core/src/mindustry/ui/fragments/ConsoleFragment.java b/core/src/mindustry/ui/fragments/ConsoleFragment.java index 86763f02e4..340930eea1 100644 --- a/core/src/mindustry/ui/fragments/ConsoleFragment.java +++ b/core/src/mindustry/ui/fragments/ConsoleFragment.java @@ -54,6 +54,11 @@ public class ConsoleFragment extends Table{ clearChatInput(); } + //there is no button to hide the console outside of the in-game state + if(mobile && !state.isGame()){ + shown = false; + } + return shown; }); diff --git a/core/src/mindustry/ui/fragments/HudFragment.java b/core/src/mindustry/ui/fragments/HudFragment.java index 486fdb3698..eb4dcdffe6 100644 --- a/core/src/mindustry/ui/fragments/HudFragment.java +++ b/core/src/mindustry/ui/fragments/HudFragment.java @@ -391,6 +391,7 @@ public class HudFragment{ }).update(i -> { if(Core.settings.getBool("console")){ i.getStyle().imageUp = Icon.terminal; + shown = true; //force shown when console is enabled, because there is no other way to show/hide }else{ i.getStyle().imageUp = shown ? Icon.downOpen : Icon.upOpen; }