diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-05 18:21:12 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-05 18:21:12 +0200 |
commit | d94e9e78af4e59e27524556b828291c1dfb72407 (patch) | |
tree | f4abde9e288756473d64e7245c5243142f69199b | |
parent | b55f95d6868a6f8247e0133245dd17aaafafdaa4 (diff) |
Fixed chatbox not being resizable when console is showing.
This was due to ConsoleWindow::update() setting focus on its editbox
every frame. Focus is now only set in show().
-rw-r--r-- | gui.cpp | 4 | ||||
-rw-r--r-- | gui.h | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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(); } @@ -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); |