summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-11 15:55:26 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-11 15:55:26 -0600
commitd528b18d008590d28627f4f63bf875767c8e0f4c (patch)
tree526cb553fb99e53eaf5b0faf39d857d4aa8658bb /src
parent75cd80b9eaee9526bfe1625ad63eccdb7c212161 (diff)
downloadmana-d528b18d008590d28627f4f63bf875767c8e0f4c.tar.gz
mana-d528b18d008590d28627f4f63bf875767c8e0f4c.tar.bz2
mana-d528b18d008590d28627f4f63bf875767c8e0f4c.tar.xz
mana-d528b18d008590d28627f4f63bf875767c8e0f4c.zip
Automatically show/hide party window sometimes
Diffstat (limited to 'src')
-rw-r--r--src/net/ea/partyhandler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index 7216719d..0eda7792 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -79,6 +79,7 @@ void PartyHandler::handleMessage(MessageIn &msg)
{
partyTab->chatLog(_("Party successfully created."), BY_SERVER);
player_node->setInParty(true);
+ partyWindow->setVisible(true);
}
break;
case SMSG_PARTY_INFO:
@@ -230,12 +231,15 @@ void PartyHandler::handleMessage(MessageIn &msg)
{
player_node->setInParty(false);
partyWindow->clearMembers();
+ partyWindow->setVisible(false);
partyTab->chatLog(_("You have left the party."), BY_SERVER);
}
else
+ {
partyTab->chatLog(strprintf(_("%s has left your party."),
nick.c_str()), BY_SERVER);
- partyWindow->removeMember(id);
+ partyWindow->removeMember(id);
+ }
break;
}
case SMSG_PARTY_UPDATE_HP: