From 9fd7d1e73bac4e18b63fabca57f31119e151c413 Mon Sep 17 00:00:00 2001 From: Matthew 'siD' Van der Bijl Date: Sat, 9 Jun 2018 20:56:45 +0200 Subject: [PATCH] Added additional getter to Console (#41) --- src/com/strongjoshua/console/AbstractConsole.java | 5 +++++ src/com/strongjoshua/console/GUIConsole.java | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/com/strongjoshua/console/AbstractConsole.java b/src/com/strongjoshua/console/AbstractConsole.java index be5147b..3a1b8c1 100644 --- a/src/com/strongjoshua/console/AbstractConsole.java +++ b/src/com/strongjoshua/console/AbstractConsole.java @@ -23,6 +23,7 @@ import com.badlogic.gdx.utils.reflect.ClassReflection; import com.badlogic.gdx.utils.reflect.Method; import com.badlogic.gdx.utils.reflect.ReflectionException; +import com.badlogic.gdx.scenes.scene2d.ui.Window; import com.strongjoshua.console.annotation.ConsoleDoc; import java.util.ArrayList; @@ -366,4 +367,8 @@ private ArrayList getAllMethods () { @Override public void setSubmitText (String text) { } + + public Window getWindow () { + return null; + } } diff --git a/src/com/strongjoshua/console/GUIConsole.java b/src/com/strongjoshua/console/GUIConsole.java index db4cc66..dd51af2 100644 --- a/src/com/strongjoshua/console/GUIConsole.java +++ b/src/com/strongjoshua/console/GUIConsole.java @@ -391,6 +391,10 @@ private void refreshWindowColor () { @Override public void setSubmitText (String text) { display.setSubmitText(text); } + + @Override public Window getWindow () { + return this.consoleWindow; + } private class ConsoleDisplay { private Table root, logEntries;