summaryrefslogtreecommitdiff
path: root/src/net/ea/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-20 18:28:49 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-20 18:28:49 +0300
commit2f879820ee0e07b94a7c8189b8b7ab0720c3e208 (patch)
tree0d9c1a55cfb304c5e3fa5ea81b0202cb0e7f307d /src/net/ea/gui
parentd4b88a7ebce6222c34928c49925f972515593e89 (diff)
downloadmanaverse-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.tar.gz
manaverse-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.tar.bz2
manaverse-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.tar.xz
manaverse-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.zip
Move partyshare into separate file.
Diffstat (limited to 'src/net/ea/gui')
-rw-r--r--src/net/ea/gui/partytab.cpp28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp
index 659ee9660..15ef5fc80 100644
--- a/src/net/ea/gui/partytab.cpp
+++ b/src/net/ea/gui/partytab.cpp
@@ -102,22 +102,22 @@ bool PartyTab::handleCommand(const std::string &restrict type,
{
switch (Net::getPartyHandler()->getShareItems())
{
- case PARTY_SHARE:
+ case Net::PartyShare::YES:
// TRANSLATORS: chat message
chatLog(_("Item sharing enabled."),
ChatMsgType::BY_SERVER);
return true;
- case PARTY_SHARE_NO:
+ case Net::PartyShare::NO:
// TRANSLATORS: chat message
chatLog(_("Item sharing disabled."),
ChatMsgType::BY_SERVER);
return true;
- case PARTY_SHARE_NOT_POSSIBLE:
+ case Net::PartyShare::NOT_POSSIBLE:
// TRANSLATORS: chat message
chatLog(_("Item sharing not possible."),
ChatMsgType::BY_SERVER);
return true;
- case PARTY_SHARE_UNKNOWN:
+ case Net::PartyShare::UNKNOWN:
// TRANSLATORS: chat message
chatLog(_("Item sharing unknown."),
ChatMsgType::BY_SERVER);
@@ -132,10 +132,12 @@ bool PartyTab::handleCommand(const std::string &restrict type,
switch (opt)
{
case 1:
- Net::getPartyHandler()->setShareItems(PARTY_SHARE);
+ Net::getPartyHandler()->setShareItems(
+ Net::PartyShare::YES);
break;
case 0:
- Net::getPartyHandler()->setShareItems(PARTY_SHARE_NO);
+ Net::getPartyHandler()->setShareItems(
+ Net::PartyShare::NO);
break;
case -1:
chatLog(strprintf(BOOLEAN_OPTIONS, "item"));
@@ -150,22 +152,22 @@ bool PartyTab::handleCommand(const std::string &restrict type,
{
switch (Net::getPartyHandler()->getShareExperience())
{
- case PARTY_SHARE:
+ case Net::PartyShare::YES:
// TRANSLATORS: chat message
chatLog(_("Experience sharing enabled."),
ChatMsgType::BY_SERVER);
return true;
- case PARTY_SHARE_NO:
+ case Net::PartyShare::NO:
// TRANSLATORS: chat message
chatLog(_("Experience sharing disabled."),
ChatMsgType::BY_SERVER);
return true;
- case PARTY_SHARE_NOT_POSSIBLE:
+ case Net::PartyShare::NOT_POSSIBLE:
// TRANSLATORS: chat message
chatLog(_("Experience sharing not possible."),
ChatMsgType::BY_SERVER);
return true;
- case PARTY_SHARE_UNKNOWN:
+ case Net::PartyShare::UNKNOWN:
// TRANSLATORS: chat message
chatLog(_("Experience sharing unknown."),
ChatMsgType::BY_SERVER);
@@ -180,10 +182,12 @@ bool PartyTab::handleCommand(const std::string &restrict type,
switch (opt)
{
case 1:
- Net::getPartyHandler()->setShareExperience(PARTY_SHARE);
+ Net::getPartyHandler()->setShareExperience(
+ Net::PartyShare::YES);
break;
case 0:
- Net::getPartyHandler()->setShareExperience(PARTY_SHARE_NO);
+ Net::getPartyHandler()->setShareExperience(
+ Net::PartyShare::NO);
break;
case -1:
chatLog(strprintf(BOOLEAN_OPTIONS, "exp"));