summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-09-28 21:26:23 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-09-28 21:26:23 +0000
commiteb8dc37bfa07e1185308bc8d4748d92c69af1783 (patch)
tree43f8b726cc7f2c071c0641fdacb187c747aaaf5a /src/game.cpp
parente93e064373c382b80ecb37919335fbfe424efeea (diff)
downloadmana-client-eb8dc37bfa07e1185308bc8d4748d92c69af1783.tar.gz
mana-client-eb8dc37bfa07e1185308bc8d4748d92c69af1783.tar.bz2
mana-client-eb8dc37bfa07e1185308bc8d4748d92c69af1783.tar.xz
mana-client-eb8dc37bfa07e1185308bc8d4748d92c69af1783.zip
Save and load X, Y, Height, and Width to useful wins.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 6897c036..c968fba7 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -223,12 +223,21 @@ void createGuiWindows()
statusWindow->setPosition((screenW - statusWindow->getWidth()) / 2,
(screenH - statusWindow->getHeight()) / 2);
+ statusWindow->loadWindowState();
+
miniStatusWindow->setPosition(0, 0);
+
minimap->setPosition(3, 30);
+ minimap->loadWindowState();
+
chatWindow->setPosition(0, screenH - chatWindow->getHeight());
+ chatWindow->loadWindowState();
+
menuWindow->setPosition(screenW - menuWindow->getWidth(), 0);
- inventoryWindow->setPosition(screenW - statusWindow->getWidth() -
- inventoryWindow->getWidth() - 10, 5);
+
+ inventoryWindow->setPosition(60, 5);
+ inventoryWindow->loadWindowState();
+
chargeDialog->setPosition(
screenW - 5 - chargeDialog->getWidth(),
screenH - chargeDialog->getHeight() - 15);
@@ -238,6 +247,7 @@ void createGuiWindows()
/*buddyWindow->setPosition(10,
minimap->getHeight() + 30);*/
equipmentWindow->setPosition(5,140);
+ equipmentWindow->loadWindowState();
// Set initial window visibility
chatWindow->setVisible(true);