From 54a54eb5317650fc3306d200517bcc48bb7f1d9c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Nov 2013 22:59:30 +0300 Subject: fix styled drawing after update. --- src/gui/windows/buydialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gui/windows/buydialog.cpp') 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); -- cgit v1.2.3-60-g2f50