summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui.cpp4
-rw-r--r--gui.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/gui.cpp b/gui.cpp
index 4d4a723..df865ea 100644
--- a/gui.cpp
+++ b/gui.cpp
@@ -152,6 +152,10 @@ void ConsoleWindow::add_line(const char *line) {
void ConsoleWindow::update() {
MouseCursor::getSingleton().show();
+}
+
+void ConsoleWindow::show() {
+ GUI::show();
WindowManager::getSingleton().getWindow("console_editbox")->activate();
}
diff --git a/gui.h b/gui.h
index 5ea5063..aa9ccb8 100644
--- a/gui.h
+++ b/gui.h
@@ -44,6 +44,7 @@ class ConsoleWindow : public GUI {
virtual ~ConsoleWindow();
virtual void update();
+ virtual void show();
void add_line(const std::string& line);
void add_line(const char *line);