summaryrefslogtreecommitdiff
path: root/src/gui/quitdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-03 23:46:10 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-03 23:46:10 +0300
commitba8c196534f110e14e13915b299f9f658b875357 (patch)
treee855f7f3e6e66a971b29551fdb870f273930e439 /src/gui/quitdialog.cpp
parentbe5390833be676363630fcf69e81c838ba52bac2 (diff)
downloadmanaverse-ba8c196534f110e14e13915b299f9f658b875357.tar.gz
manaverse-ba8c196534f110e14e13915b299f9f658b875357.tar.bz2
manaverse-ba8c196534f110e14e13915b299f9f658b875357.tar.xz
manaverse-ba8c196534f110e14e13915b299f9f658b875357.zip
Add sound effects for open/close windows.
Diffstat (limited to 'src/gui/quitdialog.cpp')
-rw-r--r--src/gui/quitdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp
index f8f37bdec..8e3bc4d25 100644
--- a/src/gui/quitdialog.cpp
+++ b/src/gui/quitdialog.cpp
@@ -26,6 +26,7 @@
#include "game.h"
#include "keydata.h"
#include "keyevent.h"
+#include "sound.h"
#include "gui/chatwindow.h"
#include "gui/npcdialog.h"
@@ -96,12 +97,15 @@ QuitDialog::QuitDialog(QuitDialog **const pointerToMe):
reflowLayout(200, 0);
setLocationRelativeTo(getParent());
setVisible(true);
+ sound.playGuiSound(SOUND_SHOW_WINDOW);
+// enableVisibleSound(true);
requestModalFocus();
mOkButton->requestFocus();
}
QuitDialog::~QuitDialog()
{
+ sound.playGuiSound(SOUND_HIDE_WINDOW);
if (mMyPointer)
*mMyPointer = nullptr;
// Optional widgets, so delete them by hand.