1
0
mirror of https://github.com/LOOHP/Limbo.git synced 2026-06-08 05:51:43 +00:00
This commit is contained in:
LOOHP
2021-04-06 21:14:05 +08:00
parent 05cfdb73a9
commit 6d14314bd9
126 changed files with 191394 additions and 0 deletions
@@ -0,0 +1,22 @@
package com.loohp.limbo.consolegui;
import com.loohp.limbo.Limbo;
public class ConsoleTextOutput {
public static void appendText(String string) {
if (!Limbo.noGui) {
GUI.textOutput.setText(GUI.textOutput.getText() + string);
GUI.scrollPane.getVerticalScrollBar().setValue(GUI.scrollPane.getVerticalScrollBar().getMaximum());
}
}
public static void appendText(String string, boolean isWriteLine) {
if (isWriteLine) {
appendText(string + "\n");
} else {
appendText(string);
}
}
}