From 6328313a6d8a76b4d38a82f6f4dcef350c695704 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 8 Mar 2013 22:25:23 +0300 Subject: Impliment notify manager. Move buy/sell notifications to NotifyManager. --- src/net/ea/buysellhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/ea/buysellhandler.cpp') diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index 1b24c6b42..2838f8351 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -25,9 +25,9 @@ #include "actorspritemanager.h" #include "client.h" #include "configuration.h" -#include "depricatedevent.h" #include "inventory.h" #include "localplayer.h" +#include "notifymanager.h" #include "playerinfo.h" #include "gui/buydialog.h" @@ -160,7 +160,7 @@ void BuySellHandler::processNpcSell(Net::MessageIn &msg, int offset) } else { - SERVER_NOTICE(_("Nothing to sell.")) + NotifyManager::notify(NotifyManager::SELL_LIST_EMPTY); } } @@ -168,7 +168,7 @@ void BuySellHandler::processNpcBuyResponse(Net::MessageIn &msg) { if (msg.readInt8() == 0) { - SERVER_NOTICE(_("Thanks for buying.")) + NotifyManager::notify(NotifyManager::BUY_DONE); } else { @@ -176,7 +176,7 @@ void BuySellHandler::processNpcBuyResponse(Net::MessageIn &msg) // would go fine if (mBuyDialog) mBuyDialog->setMoney(PlayerInfo::getAttribute(PlayerInfo::MONEY)); - SERVER_NOTICE(_("Unable to buy.")) + NotifyManager::notify(NotifyManager::BUY_FAILED); } } -- cgit v1.2.3-70-g09d2