diff options
author | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-07-25 17:00:48 +0000 |
---|---|---|
committer | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-07-25 17:00:48 +0000 |
commit | b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e (patch) | |
tree | 0b11d3e871ad33618f21b43b24d999014a7b1d7f /src/game.cpp | |
parent | 83f233b27ea4fdd5e9b16685af5c55eab8b0d295 (diff) | |
download | Mana-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.tar.gz Mana-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.tar.bz2 Mana-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.tar.xz Mana-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.zip |
Applied patch by ElvenProgrammer to remember window locations between sessions
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 070cab52..2522c6e5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -215,10 +215,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)) { |