From c1d360e6f0ae1ff3c15a52fab8a6115841d058bb Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Tue, 26 Apr 2005 09:17:53 +0000 Subject: Added scrolling to chat but setText() works strangly and because of draw() I get message looping --- src/gui/chat.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/chat.h') 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 #include #include @@ -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 -- cgit v1.2.3-60-g2f50