This commit is contained in:
Anuken
2020-08-26 14:35:43 -04:00
parent 1c12740006
commit 8a36b3e590
3 changed files with 7 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ public class ScriptConsoleFragment extends Table{
font = Fonts.def;
visible(() -> {
if(input.keyTap(Binding.console) && (scene.getKeyboardFocus() == chatfield || scene.getKeyboardFocus() == null)){
if(input.keyTap(Binding.console) && (scene.getKeyboardFocus() == chatfield || scene.getKeyboardFocus() == null) && !ui.chatfrag.shown()){
shown = !shown;
if(shown && !open && enableConsole){
toggle();
@@ -218,6 +218,10 @@ public class ScriptConsoleFragment extends Table{
return open;
}
public boolean shown(){
return shown;
}
public void addMessage(String message){
messages.insert(0, message);
}