Minor console fixes

This commit is contained in:
Anuken
2026-03-28 15:27:16 -04:00
parent d8a5c0ba27
commit 5223f088e7
2 changed files with 6 additions and 0 deletions
@@ -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;
});
@@ -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;
}