diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-10-04 12:54:38 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-10-04 12:54:38 +0000 |
commit | 342c0fae5ec4fd4f653618008ef90eec14200d00 (patch) | |
tree | 13146318d951e161fe9f3426a55536248ef5b1d6 /src/gui/menuwindow.cpp | |
parent | 87a5d0f5076cd00f6f9f2e9479c760489f54d5a1 (diff) | |
download | mana-342c0fae5ec4fd4f653618008ef90eec14200d00.tar.gz mana-342c0fae5ec4fd4f653618008ef90eec14200d00.tar.bz2 mana-342c0fae5ec4fd4f653618008ef90eec14200d00.tar.xz mana-342c0fae5ec4fd4f653618008ef90eec14200d00.zip |
Move to top the requested windows. Also corrected the default win pos for inventory and equipment.
Diffstat (limited to 'src/gui/menuwindow.cpp')
-rw-r--r-- | src/gui/menuwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/menuwindow.cpp b/src/gui/menuwindow.cpp index 1308599f..1e190102 100644 --- a/src/gui/menuwindow.cpp +++ b/src/gui/menuwindow.cpp @@ -101,21 +101,26 @@ void MenuWindow::action(const std::string& eventId) if (eventId == "Status") { statusWindow->setVisible(!statusWindow->isVisible()); + if (statusWindow->isVisible()) statusWindow->requestMoveToTop(); } if (eventId == "Equipment") { equipmentWindow->setVisible(!equipmentWindow->isVisible()); + if (equipmentWindow->isVisible()) equipmentWindow->requestMoveToTop(); } if (eventId == "Inventory") { inventoryWindow->setVisible(!inventoryWindow->isVisible()); + if (inventoryWindow->isVisible()) inventoryWindow->requestMoveToTop(); } if (eventId == "Skills") { skillDialog->setVisible(!skillDialog->isVisible()); + if (skillDialog->isVisible()) skillDialog->requestMoveToTop(); } if (eventId == "Setup") { setupWindow->setVisible(!setupWindow->isVisible()); + if (setupWindow->isVisible()) setupWindow->requestMoveToTop(); } } |