diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-04-26 09:17:53 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-04-26 09:17:53 +0000 |
commit | c1d360e6f0ae1ff3c15a52fab8a6115841d058bb (patch) | |
tree | c535f85804c5e0290e32a649d9f0749cfefda41f /src/gui/chat.h | |
parent | 8b0e30d3798cd5bdce2c3a34a3c384e90dceac99 (diff) | |
download | mana-c1d360e6f0ae1ff3c15a52fab8a6115841d058bb.tar.gz mana-c1d360e6f0ae1ff3c15a52fab8a6115841d058bb.tar.bz2 mana-c1d360e6f0ae1ff3c15a52fab8a6115841d058bb.tar.xz mana-c1d360e6f0ae1ff3c15a52fab8a6115841d058bb.zip |
Added scrolling to chat but setText() works strangly and because of draw() I get message looping
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r-- | src/gui/chat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h index 4aabe4c2..b41e6947 100644 --- a/src/gui/chat.h +++ b/src/gui/chat.h @@ -28,6 +28,8 @@ #include "../resources/image.h" #include "../net/network.h" #include "window.h" +#include "textbox.h" +#include "scrollarea.h" #include <SDL.h> #include <list> #include <string> @@ -109,6 +111,9 @@ class ChatWindow : public Window, public gcn::ActionListener { */ ~ChatWindow(); + + void addOutput(std::string output); + /* * Adds a line of text to our message list. Parameters: * @@ -198,6 +203,8 @@ class ChatWindow : public Window, public gcn::ActionListener { /** Input box for chat messages */ gcn::TextField *chatInput; + TextBox *textOutput; + ScrollArea *scrollArea; }; #endif |