summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2008-12-17 21:15:26 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-17 22:14:38 +0100
commitb885ddf99f73a5a86b72d60264a46bb2c4b0b995 (patch)
tree4f4e52c75c6e3aeecf57ce399ce157a281798087 /src/game.cpp
parentfcc90586d1d1631c31b2799fdaf410af1b073cf0 (diff)
downloadmana-client-b885ddf99f73a5a86b72d60264a46bb2c4b0b995.tar.gz
mana-client-b885ddf99f73a5a86b72d60264a46bb2c4b0b995.tar.bz2
mana-client-b885ddf99f73a5a86b72d60264a46bb2c4b0b995.tar.xz
mana-client-b885ddf99f73a5a86b72d60264a46bb2c4b0b995.zip
Remember windows visibility.
(cherry picked from eathena client repository, commits 88af5cb15a02a26f4a5990ba3ef4df46e572bff4, 19ee623c0a1fdd333ef5b945ea887c983c829b1e, f924885ea0db5842b080610ec63e61a4bcc2a30c) Conflicts: src/gui/itemshortcutwindow.cpp src/gui/window.cpp
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 11712f6b..fc9d89eb 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -219,10 +219,18 @@ void createGuiWindows()
//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));
+ buyDialog->setVisible(false);
+ sellDialog->setVisible(false);
+ tradeWindow->setVisible(false);
+ menuWindow->setVisible((bool) config.getValue(
+ menuWindow->getWindowName() + "Visible", true));
+ itemShortcutWindow->setVisible((bool) config.getValue(
+ itemShortcutWindow->getWindowName() + "Visible", true));
if (config.getValue("logToChat", 0))
{