summaryrefslogtreecommitdiff
path: root/src/gui/windows/selldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-30 22:59:30 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-30 22:59:30 +0300
commit54a54eb5317650fc3306d200517bcc48bb7f1d9c (patch)
treec9531ffffa2b8a97c134a0d7d0ad14de16da3dc9 /src/gui/windows/selldialog.cpp
parent679f626e7e937a55b315d58fd3c3e23077e91ede (diff)
downloadManaVerse-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.gz
ManaVerse-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.bz2
ManaVerse-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.xz
ManaVerse-54a54eb5317650fc3306d200517bcc48bb7f1d9c.zip
fix styled drawing after update.
Diffstat (limited to 'src/gui/windows/selldialog.cpp')
-rw-r--r--src/gui/windows/selldialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/selldialog.cpp b/src/gui/windows/selldialog.cpp
index 5cca9892f..727c94108 100644
--- a/src/gui/windows/selldialog.cpp
+++ b/src/gui/windows/selldialog.cpp
@@ -161,7 +161,7 @@ SellDialog::~SellDialog()
void SellDialog::reset()
{
mShopItems->clear();
- mSlider->setValue(0);
+ mSlider->setValue2(0);
mShopItemList->setSelected(-1);
updateButtonsAndLabels();
}
@@ -212,19 +212,19 @@ void SellDialog::action(const gcn::ActionEvent &event)
else if (eventId == "inc" && mAmountItems < mMaxItems)
{
mAmountItems++;
- mSlider->setValue(mAmountItems);
+ mSlider->setValue2(mAmountItems);
updateButtonsAndLabels();
}
else if (eventId == "dec" && mAmountItems > 1)
{
mAmountItems--;
- mSlider->setValue(mAmountItems);
+ mSlider->setValue2(mAmountItems);
updateButtonsAndLabels();
}
else if (eventId == "max")
{
mAmountItems = mMaxItems;
- mSlider->setValue(mAmountItems);
+ mSlider->setValue2(mAmountItems);
updateButtonsAndLabels();
}
else if ((eventId == "presell" || eventId == "sell" || eventId == "yes")
@@ -278,7 +278,7 @@ void SellDialog::action(const gcn::ActionEvent &event)
mPlayerMoney +=
mAmountItems * mShopItems->at(selectedItem)->getPrice();
mAmountItems = 1;
- mSlider->setValue(0);
+ mSlider->setValue2(0);
if (mMaxItems)
{
@@ -313,7 +313,7 @@ void SellDialog::valueChanged(const gcn::SelectionEvent &event A_UNUSED)
{
// Reset amount of items and update labels
mAmountItems = 1;
- mSlider->setValue(0);
+ mSlider->setValue2(0);
updateButtonsAndLabels();
mSlider->setScale(1, mMaxItems);