summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/buydialog.cpp14
-rw-r--r--src/gui/windows/itemamountwindow.cpp10
-rw-r--r--src/gui/windows/selldialog.cpp12
3 files changed, 18 insertions, 18 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);
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index 9800379b1..5e613cc62 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -391,7 +391,7 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event)
else if (eventId == "slide")
amount = static_cast<int>(mItemAmountSlide->getValue());
mItemAmountTextField->setValue(amount);
- mItemAmountSlide->setValue(amount);
+ mItemAmountSlide->setValue2(amount);
if (mItemPriceTextField && mItemPriceSlide)
{
@@ -407,14 +407,14 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event)
mPrice++;
price = static_cast<int>(pow(10.0, mPrice));
mItemPriceTextField->setValue(price);
- mItemPriceSlide->setValue(price);
+ mItemPriceSlide->setValue2(price);
}
else if (eventId == "decPrice")
{
mPrice--;
price = static_cast<int>(pow(10.0, mPrice));
mItemPriceTextField->setValue(price);
- mItemPriceSlide->setValue(price);
+ mItemPriceSlide->setValue2(price);
}
else if (eventId == "slidePrice")
{
@@ -424,7 +424,7 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event)
else
mPrice = 0;
mItemPriceTextField->setValue(price);
- mItemPriceSlide->setValue(price);
+ mItemPriceSlide->setValue2(price);
}
}
}
@@ -437,7 +437,7 @@ void ItemAmountWindow::close()
void ItemAmountWindow::keyReleased(gcn::KeyEvent &keyEvent A_UNUSED)
{
- mItemAmountSlide->setValue(mItemAmountTextField->getValue());
+ mItemAmountSlide->setValue2(mItemAmountTextField->getValue());
}
void ItemAmountWindow::showWindow(const Usage usage, Window *const parent,
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);