From c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Jan 2016 15:01:37 +0300 Subject: Impliment packet SMSG_MAIL_OPEN_WINDOW 0x0260. --- src/net/eathena/mailrecv.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/eathena/mailrecv.cpp b/src/net/eathena/mailrecv.cpp index 67ba37cf2..d920d98c5 100644 --- a/src/net/eathena/mailrecv.cpp +++ b/src/net/eathena/mailrecv.cpp @@ -41,14 +41,24 @@ namespace EAthena void MailRecv::processMailOpen(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; const int flag = msg.readInt32("flag"); switch (flag) { case 0: // open window + if (mailWindow) + { + if (!mailWindow->isWindowVisible()) + mailWindow->setVisible(Visible_true); + mailWindow->requestMoveToTop(); + } break; case 1: // close window + if (mailWindow) + { + if (mailWindow->isWindowVisible()) + mailWindow->setVisible(Visible_false); + } break; default: -- cgit v1.2.3-70-g09d2