summaryrefslogtreecommitdiff
path: root/src/gui/partywindow.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-11 15:07:40 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-11 15:07:40 -0600
commit75cd80b9eaee9526bfe1625ad63eccdb7c212161 (patch)
tree9547981f72a13ab96e7dab70b96775f8ffcdd739 /src/gui/partywindow.cpp
parent47b127b648939c0c0d7f1efaceca8d675dccf513 (diff)
downloadmana-75cd80b9eaee9526bfe1625ad63eccdb7c212161.tar.gz
mana-75cd80b9eaee9526bfe1625ad63eccdb7c212161.tar.bz2
mana-75cd80b9eaee9526bfe1625ad63eccdb7c212161.tar.xz
mana-75cd80b9eaee9526bfe1625ad63eccdb7c212161.zip
Adjust party window visibility logic
It now behaves like most windows: defaults to not visible and will save it's visibility. Only the user should be altering it now.
Diffstat (limited to 'src/gui/partywindow.cpp')
-rw-r--r--src/gui/partywindow.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp
index dbd8f3ef..982898fb 100644
--- a/src/gui/partywindow.cpp
+++ b/src/gui/partywindow.cpp
@@ -46,6 +46,7 @@ PartyWindow::PartyWindow() :
{
setWindowName("Party");
setVisible(false);
+ setSaveVisible(true);
setResizable(true);
setSaveVisible(true);
setCloseButton(true);
@@ -54,7 +55,6 @@ PartyWindow::PartyWindow() :
setDefaultSize(590, 200, 200, 200);
loadWindowState();
- setVisible(false); // Do not start out visible
}
PartyWindow::~PartyWindow()
@@ -111,12 +111,6 @@ void PartyWindow::updateMember(int id, const std::string &memberName,
player->online = online;
player->avatar->setName(memberName);
player->avatar->setOnline(online);
-
- // show the window
- if (mMembers.size() > 0)
- {
- setVisible(true);
- }
}
void PartyWindow::updateMemberHP(int id, int hp, int maxhp)
@@ -129,12 +123,6 @@ void PartyWindow::updateMemberHP(int id, int hp, int maxhp)
void PartyWindow::removeMember(int id)
{
mMembers.erase(id);
-
- // if no-one left, remove the party window
- if (mMembers.size() < 1)
- {
- setVisible(false);
- }
}
void PartyWindow::removeMember(const std::string &name)