mirror of
https://github.com/LOOHP/Limbo.git
synced 2026-06-08 05:51:43 +00:00
reupload
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user