diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2008-07-23 17:23:30 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2008-07-23 17:23:30 +0000 |
commit | 88af5cb15a02a26f4a5990ba3ef4df46e572bff4 (patch) | |
tree | 2048504328935423b0e4aa02cc58b5265c24d432 /src/game.cpp | |
parent | c17120c9838665fd546c6ae7a1d81de79659d429 (diff) | |
download | mana-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.cpp | 13 |
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)) { |