summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-23 06:35:15 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-23 06:35:15 +0300
commit51c1436f27042c1a84aa3d18aa500385abc7f57b (patch)
tree57271524323982261ed182a73056109591291553 /src/gui/windows/inventorywindow.cpp
parent144484e103cf468dbc70ecdf285de233d28aa957 (diff)
downloadplus-51c1436f27042c1a84aa3d18aa500385abc7f57b.tar.gz
plus-51c1436f27042c1a84aa3d18aa500385abc7f57b.tar.bz2
plus-51c1436f27042c1a84aa3d18aa500385abc7f57b.tar.xz
plus-51c1436f27042c1a84aa3d18aa500385abc7f57b.zip
Remove default parameters from itemamountwindow.
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r--src/gui/windows/inventorywindow.cpp64
1 files changed, 50 insertions, 14 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index aca7c583a..3a62686ce 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -440,12 +440,18 @@ void InventoryWindow::action(const ActionEvent &event)
if (storageWindow != nullptr)
{
ItemAmountWindow::showWindow(ItemAmountWindowUsage::StoreAdd,
- this, item);
+ this,
+ item,
+ 0,
+ 0);
}
else if ((cartWindow != nullptr) && cartWindow->isWindowVisible())
{
ItemAmountWindow::showWindow(ItemAmountWindowUsage::CartAdd,
- this, item);
+ this,
+ item,
+ 0,
+ 0);
}
}
else if (eventId == "sort")
@@ -507,27 +513,38 @@ void InventoryWindow::action(const ActionEvent &event)
else
{
ItemAmountWindow::showWindow(ItemAmountWindowUsage::ItemDrop,
- this, item);
+ this,
+ item,
+ 0,
+ 0);
}
}
}
else if (eventId == "split")
{
ItemAmountWindow::showWindow(ItemAmountWindowUsage::ItemSplit,
- this, item,
- (item->getQuantity() - 1));
+ this,
+ item,
+ item->getQuantity() - 1,
+ 9);
}
else if (eventId == "retrieve")
{
if (storageWindow != nullptr)
{
ItemAmountWindow::showWindow(ItemAmountWindowUsage::StoreRemove,
- this, item);
+ this,
+ item,
+ 0,
+ 0);
}
else if ((cartWindow != nullptr) && cartWindow->isWindowVisible())
{
ItemAmountWindow::showWindow(ItemAmountWindowUsage::CartRemove,
- this, item);
+ this,
+ item,
+ 0,
+ 0);
}
}
}
@@ -611,7 +628,9 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
ItemAmountWindow::showWindow(
ItemAmountWindowUsage::StoreAdd,
inventoryWindow,
- item);
+ item,
+ 0,
+ 0);
}
else
{
@@ -628,7 +647,9 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
ItemAmountWindow::showWindow(
ItemAmountWindowUsage::StoreRemove,
inventoryWindow,
- item);
+ item,
+ 0,
+ 0);
}
else
{
@@ -646,7 +667,10 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
if (event.getButton() == MouseButton::RIGHT)
{
ItemAmountWindow::showWindow(ItemAmountWindowUsage::TradeAdd,
- tradeWindow, item);
+ tradeWindow,
+ item,
+ 0,
+ 0);
}
else
{
@@ -662,7 +686,10 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
{
ItemAmountWindow::showWindow(
ItemAmountWindowUsage::StoreAdd,
- inventoryWindow, item);
+ inventoryWindow,
+ item,
+ 0,
+ 0);
}
else if (tradeWindow != nullptr &&
tradeWindow->isWindowVisible())
@@ -671,7 +698,10 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
return;
ItemAmountWindow::showWindow(
ItemAmountWindowUsage::TradeAdd,
- tradeWindow, item);
+ tradeWindow,
+ item,
+ 0,
+ 0);
}
else
{
@@ -684,7 +714,10 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
{
ItemAmountWindow::showWindow(
ItemAmountWindowUsage::StoreRemove,
- inventoryWindow, item);
+ inventoryWindow,
+ item,
+ 0,
+ 0);
}
}
}
@@ -755,7 +788,10 @@ void InventoryWindow::valueChanged(const SelectionEvent &event A_UNUSED)
canSplit(mItems->getSelectedItem()))
{
ItemAmountWindow::showWindow(ItemAmountWindowUsage::ItemSplit,
- this, item, item->getQuantity() - 1);
+ this,
+ item,
+ item->getQuantity() - 1,
+ 0);
}
updateButtons(item);
}