diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-19 13:45:07 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-19 13:45:07 +0000 |
commit | 56cdfd3822d2800abdd2f912ab7f76a5764793a7 (patch) | |
tree | 2656c7ef694117e0554ae4a47bb09629c78ed8af /src/client/chat.h | |
parent | e6f1fad441a7737549f463ebac1c9de062b5173d (diff) |
scrollpane widget, updated chatbox
Diffstat (limited to 'src/client/chat.h')
-rw-r--r-- | src/client/chat.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 <deque> #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<std::string> History; |