summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-10-04 12:54:38 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-10-04 12:54:38 +0000
commit342c0fae5ec4fd4f653618008ef90eec14200d00 (patch)
tree13146318d951e161fe9f3426a55536248ef5b1d6 /src/game.cpp
parent87a5d0f5076cd00f6f9f2e9479c760489f54d5a1 (diff)
downloadmana-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/game.cpp')
-rw-r--r--src/game.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2ed80da5..c1b9ceef 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -475,6 +475,7 @@ void do_input()
helpWindow->setVisible(false);
} else {
helpWindow->loadHelp("index");
+ if (helpWindow->isVisible()) helpWindow->requestMoveToTop();
}
used = true;
break;
@@ -578,6 +579,7 @@ void do_input()
"Quit", "Are you sure you want to quit?",
(gcn::ActionListener*)&exitListener);
}
+ exitConfirm->requestMoveToTop();
break;
default:
@@ -594,12 +596,14 @@ void do_input()
case SDLK_i:
inventoryWindow->setVisible(
!inventoryWindow->isVisible());
+ if (inventoryWindow->isVisible()) inventoryWindow->requestMoveToTop();
used = true;
break;
// Statistics window
case SDLK_s:
statusWindow->setVisible(!statusWindow->isVisible());
+ if (statusWindow->isVisible()) statusWindow->requestMoveToTop();
used = true;
break;
@@ -607,6 +611,7 @@ void do_input()
// New skills window
case SDLK_n:
newSkillWindow->setVisible(!newSkillWindow->isVisible());
+ if (newSkillWindow->isVisible()) newSkillWindow->requestMoveToTop();
used = true;
break;
*/
@@ -625,12 +630,14 @@ void do_input()
// Skill window
case SDLK_k:
skillDialog->setVisible(!skillDialog->isVisible());
+ if (skillDialog->isVisible()) skillDialog->requestMoveToTop();
used = true;
break;
// Setup window
case SDLK_c:
setupWindow->setVisible(true);
+ setupWindow->requestMoveToTop();
used = true;
break;
@@ -638,6 +645,7 @@ void do_input()
case SDLK_e:
equipmentWindow->setVisible(
!equipmentWindow->isVisible());
+ if (equipmentWindow->isVisible()) equipmentWindow->requestMoveToTop();
used = true;
break;
@@ -645,6 +653,7 @@ void do_input()
// Buddy window
case SDLK_b:
buddyWindow->setVisible(!buddyWindow->isVisible());
+ if (buddyWindow->isVisible()) buddyWindow->requestMoveToTop();
used = true;
break;
*/