From 56cdfd3822d2800abdd2f912ab7f76a5764793a7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Oct 2008 13:45:07 +0000 Subject: scrollpane widget, updated chatbox --- src/client/chat.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/client/chat.h') diff --git a/src/client/chat.h b/src/client/chat.h index c7232a9..1ea1765 100644 --- a/src/client/chat.h +++ b/src/client/chat.h @@ -11,7 +11,7 @@ #include #include "ui/inputbox.h" -#include "ui/label.h" +#include "ui/scrollpane.h" #include "ui/window.h" namespace client { @@ -25,6 +25,8 @@ public: virtual void show(); void toggle(); + void event_text(const std::string & text); + protected: virtual void event_draw(); virtual void resize(); @@ -33,7 +35,8 @@ protected: private: - ui::Label *chat_label; + ui::Text chat_log; + ui::ScrollPane *chat_scrollpane; ui::InputBox *chat_input; typedef std::deque History; -- cgit v1.2.3