mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
Minor console fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user