diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-13 01:54:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-13 04:28:32 +0300 |
commit | acba95ebb0119e7b0f9ef01d9bf3577582857253 (patch) | |
tree | b5346c2a5642456e793b28487020cf1c727d8f07 /src/net/eathena/clanrecv.cpp | |
parent | 0a47f5c44ddd5fb5157d116ffe0f5ee5f4207eb0 (diff) | |
download | ManaVerse-acba95ebb0119e7b0f9ef01d9bf3577582857253.tar.gz ManaVerse-acba95ebb0119e7b0f9ef01d9bf3577582857253.tar.bz2 ManaVerse-acba95ebb0119e7b0f9ef01d9bf3577582857253.tar.xz ManaVerse-acba95ebb0119e7b0f9ef01d9bf3577582857253.zip |
Add clan window.
For now can be opened only by chat command /clan.
Diffstat (limited to 'src/net/eathena/clanrecv.cpp')
-rw-r--r-- | src/net/eathena/clanrecv.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/eathena/clanrecv.cpp b/src/net/eathena/clanrecv.cpp index 7324003b3..c2c5680db 100644 --- a/src/net/eathena/clanrecv.cpp +++ b/src/net/eathena/clanrecv.cpp @@ -27,6 +27,7 @@ #include "gui/widgets/tabs/chat/clantab.h" #include "gui/windows/chatwindow.h" +#include "gui/windows/clanwindow.h" #include "net/messagein.h" @@ -72,17 +73,21 @@ void ClanRecv::processClanInfo(Net::MessageIn &msg) localClan.stats = info->stats; } createTab(); + clanWindow->updateClan(); } void ClanRecv::processClanOnlineCount(Net::MessageIn &msg) { localClan.onlineMembers = msg.readInt16("online members count"); localClan.totalMembers = msg.readInt16("total members count"); + clanWindow->updateClanMembers(); } void ClanRecv::processClanLeave(Net::MessageIn &msg A_UNUSED) { delete2(clanTab); + localClan.clear(); + clanWindow->resetClan(); } void ClanRecv::processClanChat(Net::MessageIn &msg) |