From 178f0e4a83918df416ac8274b0e845b390772d76 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 27 Sep 2010 20:03:50 +0000 Subject: documentation updates, initial chat window playerlist, trade menu ESC key --- src/client/chat.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/client/chat.h') diff --git a/src/client/chat.h b/src/client/chat.h index 61f5bd1..0972400 100644 --- a/src/client/chat.h +++ b/src/client/chat.h @@ -13,6 +13,7 @@ #include "ui/inputbox.h" #include "ui/scrollpane.h" #include "ui/window.h" +#include "ui/listview.h" namespace client { @@ -37,22 +38,23 @@ public: void clear(); protected: - virtual void event_draw(); + virtual void draw(); + virtual void resize(); virtual bool on_keypress(const int key, const unsigned int modifier); private: + void update_player_list(); bool chat_small; ui::Text chat_log; ui::ScrollPane *chat_scrollpane; - - ui::Text chat_players; - ui::ScrollPane *chat_playerpane; - ui::InputBox *chat_input; + ui::ListView *chat_playerlist; + + unsigned long chat_playerlist_timestamp; typedef std::deque History; -- cgit v1.2.3