summaryrefslogtreecommitdiff
path: root/src/net/ea/gui/partytab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-18 13:20:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-18 13:20:13 +0300
commit3c7d4f339c20bc665efa6f6666171f0ca610203b (patch)
tree7c6479877911619696fd481698987e2f83491666 /src/net/ea/gui/partytab.cpp
parent64b82129075e7608e94f8e27ee6c446213032cfb (diff)
downloadmanaplus-3c7d4f339c20bc665efa6f6666171f0ca610203b.tar.gz
manaplus-3c7d4f339c20bc665efa6f6666171f0ca610203b.tar.bz2
manaplus-3c7d4f339c20bc665efa6f6666171f0ca610203b.tar.xz
manaplus-3c7d4f339c20bc665efa6f6666171f0ca610203b.zip
show online messages in party tab.
by default disabled.
Diffstat (limited to 'src/net/ea/gui/partytab.cpp')
-rw-r--r--src/net/ea/gui/partytab.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp
index eb4801cbf..5cca1d54a 100644
--- a/src/net/ea/gui/partytab.cpp
+++ b/src/net/ea/gui/partytab.cpp
@@ -24,6 +24,7 @@
#include "chatlogger.h"
#include "commands.h"
+#include "configuration.h"
#include "party.h"
#include "soundconsts.h"
#include "soundmanager.h"
@@ -50,6 +51,9 @@ PartyTab::PartyTab(const Widget2 *const widget) :
&getThemeColor(Theme::PARTY_CHAT_TAB_HIGHLIGHTED_OUTLINE));
setSelectedTabColor(&getThemeColor(Theme::PARTY_CHAT_TAB_SELECTED),
&getThemeColor(Theme::PARTY_CHAT_TAB_SELECTED_OUTLINE));
+
+ mShowOnline = config.getBoolValue("showPartyOnline");
+ config.addListener("showPartyOnline", this);
}
PartyTab::~PartyTab()
@@ -281,4 +285,11 @@ void PartyTab::playNewMessageSound() const
{
soundManager.playGuiSound(SOUND_GUILD);
}
+
+void PartyTab::optionChanged(const std::string &value)
+{
+ if (value == "showPartyOnline")
+ mShowOnline = config.getBoolValue("showPartyOnline");
+}
+
} // namespace Ea