diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-03 23:46:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-03 23:46:10 +0300 |
commit | ba8c196534f110e14e13915b299f9f658b875357 (patch) | |
tree | e855f7f3e6e66a971b29551fdb870f273930e439 /src/gui/quitdialog.cpp | |
parent | be5390833be676363630fcf69e81c838ba52bac2 (diff) | |
download | mv-ba8c196534f110e14e13915b299f9f658b875357.tar.gz mv-ba8c196534f110e14e13915b299f9f658b875357.tar.bz2 mv-ba8c196534f110e14e13915b299f9f658b875357.tar.xz mv-ba8c196534f110e14e13915b299f9f658b875357.zip |
Add sound effects for open/close windows.
Diffstat (limited to 'src/gui/quitdialog.cpp')
-rw-r--r-- | src/gui/quitdialog.cpp | 4 |
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. |