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.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index af6c437e..3c373165 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -80,7 +80,6 @@ InventoryWindow::InventoryWindow():
add(itemEffectLabel);
add(weightLabel);
- updateWidgets();
useButton->setSize(48, useButton->getHeight());
loadWindowState();
@@ -235,3 +234,20 @@ Item* InventoryWindow::getItem()
{
return items->getItem();
}
+
+void InventoryWindow::loadWindowState()
+{
+ Window::loadWindowState();
+ updateWidgets();
+}
+
+void InventoryWindow::setDefaultSize(int defaultX, int defaultY, int defaultWidth, int defaultHeight)
+{
+ Window::setDefaultSize(defaultX, defaultY, defaultWidth, defaultHeight);
+}
+
+void InventoryWindow::resetToDefaultSize()
+{
+ Window::resetToDefaultSize();
+ updateWidgets();
+}