summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-29 01:18:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-29 01:18:21 +0300
commitb0ce837b66ddc34a9b2a9346291b252f748c577f (patch)
tree6bcd1c475d48e2cb12972556a1f62eaf9c392048 /src/gui/widgets/chattab.cpp
parentf474ad785704a904fd2b95d56fa67cccf69c876f (diff)
downloadManaVerse-b0ce837b66ddc34a9b2a9346291b252f748c577f.tar.gz
ManaVerse-b0ce837b66ddc34a9b2a9346291b252f748c577f.tar.bz2
ManaVerse-b0ce837b66ddc34a9b2a9346291b252f748c577f.tar.xz
ManaVerse-b0ce837b66ddc34a9b2a9346291b252f748c577f.zip
Add option to auto hide chat window (chat window visible by default)
Option in chat \ Auto hide chat window.
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r--src/gui/widgets/chattab.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index be6a31164..5f1b02d98 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -311,9 +311,17 @@ void ChatTab::chatLog(std::string line, Own own,
&& !Client::getInputFocused()))))
{
if (own == BY_GM)
+ {
+ if (chatWindow)
+ chatWindow->unHideWindow();
sound.playGuiSound(SOUND_GLOBAL);
+ }
else if (own != BY_SERVER)
+ {
+ if (chatWindow)
+ chatWindow->unHideWindow();
playNewMessageSound();
+ }
}
}
}