Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/chat.h')
-rw-r--r--src/client/chat.h12
1 files changed, 7 insertions, 5 deletions
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<std::string> History;