summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 2f5841f6..af6c437e 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -45,8 +45,11 @@
InventoryWindow::InventoryWindow():
Window("Inventory")
{
- setContentSize(322, 172);
setWindowName("Inventory");
+ setResizable(true);
+ setMinWidth(240);
+ setMinHeight(172);
+ setDefaultSize(105, 25, 322, 172);
useButton = new Button("Use");
dropButton = new Button("Drop");
@@ -77,12 +80,11 @@ InventoryWindow::InventoryWindow():
add(itemEffectLabel);
add(weightLabel);
- setResizable(true);
- setMinWidth(240);
- setMinHeight(172);
-
updateWidgets();
useButton->setSize(48, useButton->getHeight());
+
+ loadWindowState();
+
}
InventoryWindow::~InventoryWindow()