summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorLloyd Bryant <lloyd_bryant@netzero.net>2008-07-25 17:00:48 +0000
committerLloyd Bryant <lloyd_bryant@netzero.net>2008-07-25 17:00:48 +0000
commitb7bc2f74f4f2253bd67b2d51fa3d2c47d648453e (patch)
tree0b11d3e871ad33618f21b43b24d999014a7b1d7f /src/game.cpp
parent83f233b27ea4fdd5e9b16685af5c55eab8b0d295 (diff)
downloadmana-client-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.tar.gz
mana-client-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.tar.bz2
mana-client-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.tar.xz
mana-client-b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e.zip
Applied patch by ElvenProgrammer to remember window locations between sessions
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 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))
{