summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-06 01:51:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-06 01:59:28 +0300
commit90e143794c7a5daa299f7201090b127bfacb5c8a (patch)
tree06c877a47eb48b8b8422e3dbf8fb5bcd24970357
parent8b3c79f23d910db0f2c031a828783c1c2273eaf7 (diff)
downloadmanaverse-90e143794c7a5daa299f7201090b127bfacb5c8a.tar.gz
manaverse-90e143794c7a5daa299f7201090b127bfacb5c8a.tar.bz2
manaverse-90e143794c7a5daa299f7201090b127bfacb5c8a.tar.xz
manaverse-90e143794c7a5daa299f7201090b127bfacb5c8a.zip
In small inventory hide only filter box and not hide sort field.
-rw-r--r--src/gui/inventorywindow.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 6417a668a..093ca7c24 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -186,12 +186,12 @@ InventoryWindow::InventoryWindow(Inventory *inventory):
place(0, 0, mWeightLabel, 1).setPadding(3);
place(1, 0, mWeightBar, 3);
place(4, 0, mSlotsLabel, 1).setPadding(3);
- mSlotsBarCell = &place(5, 0, mSlotsBar, 3);
- mSortDropDownCell = &place(8, 0, mSortDropDown, 3);
+ mSlotsBarCell = &place(5, 0, mSlotsBar, 4);
+ mSortDropDownCell = &place(9, 0, mSortDropDown, 2);
place(0, 1, mFilterLabel, 1).setPadding(3);
- mFilterCell = &place(1, 1, mFilter, 8).setPadding(3);
- mNameFilterCell = &place(8, 1, mNameFilter, 3);
+ mFilterCell = &place(1, 1, mFilter, 9).setPadding(3);
+ mNameFilterCell = &place(9, 1, mNameFilter, 2);
place(0, 2, invenScroll, 11).setPadding(3);
place(0, 3, mUseButton);
@@ -724,23 +724,23 @@ void InventoryWindow::widgetResized(const gcn::Event &event)
{
if (!mCompactMode)
{
- mSortDropDown->setVisible(false);
+ //mSortDropDown->setVisible(false);
mNameFilter->setVisible(false);
- mSortDropDownCell->setType(LayoutCell::NONE);
+ //mSortDropDownCell->setType(LayoutCell::NONE);
mNameFilterCell->setType(LayoutCell::NONE);
- mFilterCell->setWidth(mFilterCell->getWidth() + 3);
- mSlotsBarCell->setWidth(mSlotsBarCell->getWidth() + 3);
+ mFilterCell->setWidth(mFilterCell->getWidth() + 2);
+ //mSlotsBarCell->setWidth(mSlotsBarCell->getWidth() + 3);
mCompactMode = true;
}
}
else if (mCompactMode)
{
- mSortDropDown->setVisible(true);
+ //mSortDropDown->setVisible(true);
mNameFilter->setVisible(true);
- mSortDropDownCell->setType(LayoutCell::WIDGET);
+ //mSortDropDownCell->setType(LayoutCell::WIDGET);
mNameFilterCell->setType(LayoutCell::WIDGET);
- mFilterCell->setWidth(mFilterCell->getWidth() - 3);
- mSlotsBarCell->setWidth(mSlotsBarCell->getWidth() - 3);
+ mFilterCell->setWidth(mFilterCell->getWidth() - 2);
+ //mSlotsBarCell->setWidth(mSlotsBarCell->getWidth() - 3);
mCompactMode = false;
}
}