diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-10-01 14:47:42 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-10-01 14:47:42 +0000 |
commit | 935ff1e5cdd0bc44d5de947cb06ee30871b870eb (patch) | |
tree | 986a94e587b724c93b4a051de1676324fc10b42a /src/game.cpp | |
parent | fc0b308983f9421861e508381f73a0605eeed5b7 (diff) | |
download | mana-935ff1e5cdd0bc44d5de947cb06ee30871b870eb.tar.gz mana-935ff1e5cdd0bc44d5de947cb06ee30871b870eb.tar.bz2 mana-935ff1e5cdd0bc44d5de947cb06ee30871b870eb.tar.xz mana-935ff1e5cdd0bc44d5de947cb06ee30871b870eb.zip |
Accepted patches by GDO and VictorSan that fix problems with hiding windows
using h and problems with trade window positioning.
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 bc6b0622..b07c5c9a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -195,9 +195,7 @@ void createGuiWindows(Network *network) 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);*/ @@ -492,21 +490,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 |