diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-02 21:26:57 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-02 21:26:57 +0000 |
commit | 19e15c87a1fc74f71fd6f9a743201a24ac582997 (patch) | |
tree | a615525476ef6bad8a2af4d8b90c8aea935f9109 /src/game.cpp | |
parent | 29f07d2f98b82674708f1185f26ed3c482992b04 (diff) | |
download | mana-19e15c87a1fc74f71fd6f9a743201a24ac582997.tar.gz mana-19e15c87a1fc74f71fd6f9a743201a24ac582997.tar.bz2 mana-19e15c87a1fc74f71fd6f9a743201a24ac582997.tar.xz mana-19e15c87a1fc74f71fd6f9a743201a24ac582997.zip |
Merged trunk changes from revision 2716 to 2756 into the 0.1.0 branch.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2abd9e26..5052f2ce 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -195,9 +195,7 @@ void createGuiWindows() chargeDialog->setPosition( screenW - 5 - chargeDialog->getWidth(), screenH - chargeDialog->getHeight() - 15); - tradeWindow->setPosition(screenW - statusWindow->getWidth() - - tradeWindow->getWidth() - 10, - inventoryWindow->getY() + inventoryWindow->getHeight()); + /*buddyWindow->setPosition(10, minimap->getHeight() + 30);*/ @@ -488,21 +486,18 @@ void Game::handleInput() } break; - // Attempt to hide all windows + // Hide certain windows case SDLK_h: - statusWindow->setVisible(false); - buyDialog->setVisible(false); - sellDialog->setVisible(false); - buySellDialog->setVisible(false); - inventoryWindow->setVisible(false); - npcTextDialog->setVisible(false); - npcListDialog->setVisible(false); - skillDialog->setVisible(false); - setupWindow->setVisible(false); - equipmentWindow->setVisible(false); - chargeDialog->setVisible(false); - helpWindow->setVisible(false); - debugWindow->setVisible(false); + if (!chatWindow->isFocused()) + { + statusWindow->setVisible(false); + inventoryWindow->setVisible(false); + skillDialog->setVisible(false); + setupWindow->setVisible(false); + equipmentWindow->setVisible(false); + helpWindow->setVisible(false); + debugWindow->setVisible(false); + } break; // Picking up items on the floor |