summaryrefslogtreecommitdiff
path: root/src/gui/shopwindow.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/shopwindow.cpp
parentbe5390833be676363630fcf69e81c838ba52bac2 (diff)
downloadmanaplus-ba8c196534f110e14e13915b299f9f658b875357.tar.gz
manaplus-ba8c196534f110e14e13915b299f9f658b875357.tar.bz2
manaplus-ba8c196534f110e14e13915b299f9f658b875357.tar.xz
manaplus-ba8c196534f110e14e13915b299f9f658b875357.zip
Add sound effects for open/close windows.
Diffstat (limited to 'src/gui/shopwindow.cpp')
-rw-r--r--src/gui/shopwindow.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/shopwindow.cpp b/src/gui/shopwindow.cpp
index 016ad2d26..9b32d0a38 100644
--- a/src/gui/shopwindow.cpp
+++ b/src/gui/shopwindow.cpp
@@ -114,25 +114,20 @@ ShopWindow::ShopWindow():
setMinHeight(230);
setDefaultSize(380, 300, ImageRect::CENTER);
-
mAnnounceCounter[BUY] = 0;
mAnnounceCounter[SELL] = 0;
loadList();
-
mBuyShopItemList->setPriceCheck(false);
mSellShopItemList->setPriceCheck(false);
mBuyScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
mSellScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
-
mBuyShopItemList->addSelectionListener(this);
mSellShopItemList->addSelectionListener(this);
-
-
ContainerPlacer placer;
placer = getPlacer(0, 0);
@@ -170,6 +165,7 @@ ShopWindow::ShopWindow():
instances.push_back(this);
setVisible(false);
+ enableVisibleSound(true);
updateButtonsAndLabels();
}