Skip to content

Commit

Permalink
Added additional getter to Console (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blunderchips authored and StrongJoshua committed Jun 9, 2018
1 parent 8ca8a01 commit 9fd7d1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/com/strongjoshua/console/AbstractConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -366,4 +367,8 @@ private ArrayList<Method> getAllMethods () {

@Override public void setSubmitText (String text) {
}

public Window getWindow () {
return null;
}
}
4 changes: 4 additions & 0 deletions src/com/strongjoshua/console/GUIConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9fd7d1e

Please sign in to comment.