summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2008-07-23 17:23:30 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2008-07-23 17:23:30 +0000
commit88af5cb15a02a26f4a5990ba3ef4df46e572bff4 (patch)
tree2048504328935423b0e4aa02cc58b5265c24d432 /src/game.cpp
parentc17120c9838665fd546c6ae7a1d81de79659d429 (diff)
downloadmana-88af5cb15a02a26f4a5990ba3ef4df46e572bff4.tar.gz
mana-88af5cb15a02a26f4a5990ba3ef4df46e572bff4.tar.bz2
mana-88af5cb15a02a26f4a5990ba3ef4df46e572bff4.tar.xz
mana-88af5cb15a02a26f4a5990ba3ef4df46e572bff4.zip
Remember windows visibility.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index cc37fc5a..3489257a 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -212,10 +212,15 @@ void createGuiWindows(Network *network)
//buddyWindow->setPosition(10, minimap->getHeight() + 30);
// Set initial window visibility
- chatWindow->setVisible(true);
- miniStatusWindow->setVisible(true);
- menuWindow->setVisible(true);
- itemShortcutWindow->setVisible(true);
+ chatWindow->setVisible((bool) config.getValue(
+ chatWindow->getWindowName() + "Visible", true));
+ miniStatusWindow->setVisible((bool) config.getValue(
+ miniStatusWindow->getWindowName() + "Visible",
+ true));
+ menuWindow->setVisible((bool) config.getValue(
+ menuWindow->getWindowName() + "Visible", true));
+ itemShortcutWindow->setVisible((bool) config.getValue(
+ itemShortcutWindow->getWindowName() + "Visible", true));
if (config.getValue("logToChat", 0))
{