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/shopwindow.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/shopwindow.cpp')
-rw-r--r-- | src/gui/shopwindow.cpp | 6 |
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(); } |