diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-30 22:59:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-30 22:59:30 +0300 |
commit | 54a54eb5317650fc3306d200517bcc48bb7f1d9c (patch) | |
tree | c9531ffffa2b8a97c134a0d7d0ad14de16da3dc9 /src/gui/windows/buydialog.cpp | |
parent | 679f626e7e937a55b315d58fd3c3e23077e91ede (diff) | |
download | mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.gz mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.bz2 mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.xz mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.zip |
fix styled drawing after update.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r-- | src/gui/windows/buydialog.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp index dcd94be81..21c3aedf7 100644 --- a/src/gui/windows/buydialog.cpp +++ b/src/gui/windows/buydialog.cpp @@ -344,7 +344,7 @@ void BuyDialog::reset() // Reset previous selected items to prevent failing asserts mShopItemList->setSelected(-1); - mSlider->setValue(0); + mSlider->setValue2(0); setMoney(0); } @@ -419,28 +419,28 @@ void BuyDialog::action(const gcn::ActionEvent &event) else if (eventId == "inc" && mAmountItems < mMaxItems) { mAmountItems++; - mSlider->setValue(mAmountItems); + mSlider->setValue2(mAmountItems); mAmountField->setValue(mAmountItems); updateButtonsAndLabels(); } else if (eventId == "dec" && mAmountItems > 1) { mAmountItems--; - mSlider->setValue(mAmountItems); + mSlider->setValue2(mAmountItems); mAmountField->setValue(mAmountItems); updateButtonsAndLabels(); } else if (eventId == "max") { mAmountItems = mMaxItems; - mSlider->setValue(mAmountItems); + mSlider->setValue2(mAmountItems); mAmountField->setValue(mAmountItems); updateButtonsAndLabels(); } else if (eventId == "amount") { mAmountItems = mAmountField->getValue(); - mSlider->setValue(mAmountItems); + mSlider->setValue2(mAmountItems); updateButtonsAndLabels(); } else if (eventId == "buy" && mAmountItems > 0 && mAmountItems <= mMaxItems) @@ -465,8 +465,8 @@ void BuyDialog::action(const gcn::ActionEvent &event) // Reset selection mAmountItems = 1; - mSlider->setValue(1); mSlider->setScale(1, mMaxItems); + mSlider->setValue2(1); } else if (tradeWindow) { @@ -486,7 +486,7 @@ void BuyDialog::valueChanged(const gcn::SelectionEvent &event A_UNUSED) { // Reset amount of items and update labels mAmountItems = 1; - mSlider->setValue(1); + mSlider->setValue2(1); updateButtonsAndLabels(); mSlider->setScale(1, mMaxItems); |