diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-09-29 19:46:12 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-09-29 19:46:12 +0000 |
commit | aac98cf8bcde36ba50ab45254866afc365a7908a (patch) | |
tree | 4e2ef7600f2ebd101484a305d3df6ca5135b39ef /src/gui/inventorywindow.cpp | |
parent | c00d3acf930359740ae6125533b5233ae06b765e (diff) | |
download | mana-aac98cf8bcde36ba50ab45254866afc365a7908a.tar.gz mana-aac98cf8bcde36ba50ab45254866afc365a7908a.tar.bz2 mana-aac98cf8bcde36ba50ab45254866afc365a7908a.tar.xz mana-aac98cf8bcde36ba50ab45254866afc365a7908a.zip |
Improved a lot windows reset to default size and pos. Also corrected a few the default win position. And moved the setposition from game to each win, to clarify the code.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r-- | src/gui/inventorywindow.cpp | 12 |
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() |