From 5101c5931c9ea906db942e76effe8751260f6495 Mon Sep 17 00:00:00 2001 From: GammelJAN Date: Sun, 24 Jan 2021 14:01:31 +0100 Subject: [PATCH] textbox edited --- core/src/com/trs/main/Textbox.java | 1 + .../com/trs/main/desktop/DesktopLauncher.java | 22 +++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/core/src/com/trs/main/Textbox.java b/core/src/com/trs/main/Textbox.java index 2028bf6..33e0cb3 100644 --- a/core/src/com/trs/main/Textbox.java +++ b/core/src/com/trs/main/Textbox.java @@ -138,6 +138,7 @@ public class Textbox extends Actor{ } if(Gdx.input.isKeyJustPressed(Input.Keys.ENTER)){ state = 1; + printChar = toPrint.length(); } } diff --git a/desktop/src/com/trs/main/desktop/DesktopLauncher.java b/desktop/src/com/trs/main/desktop/DesktopLauncher.java index f13696f..bb4e22e 100644 --- a/desktop/src/com/trs/main/desktop/DesktopLauncher.java +++ b/desktop/src/com/trs/main/desktop/DesktopLauncher.java @@ -5,17 +5,17 @@ import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; import com.trs.main.Main; public class DesktopLauncher { - public static void main (String[] arg) { - LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); - config.resizable = true; + public static void main (String[] arg) { + LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); + config.resizable = true; - config.width=1280; - config.height=720; - config.fullscreen = false; + config.width=1280; + config.height=720; + config.fullscreen = false; - //config.width=1920; - //config.height=1080; - //config.fullscreen = true; - new LwjglApplication(new Main(), config); - } + //config.width=1920; + //config.height=1080; + //config.fullscreen = true; + new LwjglApplication(new Main(), config); + } } \ No newline at end of file