Skip to content
Snippets Groups Projects
Commit 7de1338b authored by Kellian Mirey's avatar Kellian Mirey
Browse files

Patch main display

parent 367e7add
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@ public class Display {
public static void clearScreen() {
System.out.print("\033[H\033[2J");
System.out.flush();
}
public static String loadTextFile(String path) throws IOException{
......@@ -32,7 +31,7 @@ public class Display {
}
public static void goToDialogBox(){
setCursorPos(row+2,0);
setCursorPos(row+7,0);
}
......@@ -44,6 +43,7 @@ public class Display {
}
public static void printDialogBox() throws IOException{
setCursorPos(50, 0);
String dialogBox = loadTextFile("assets/DialogBox.text");
System.out.println(dialogBox);
}
......@@ -53,8 +53,8 @@ public class Display {
}
public static void newPrintln(String text) throws IOException{
Display.clearDialogBox();
clearDialogBox();
System.out.println(text);
Display.goToUserInput();
goToUserInput();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment