summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-08-24 09:33:33 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-08-24 09:33:33 +0000
commitdd79b36895a17b3da131197be66827e6809615f0 (patch)
treebe41cac640f44cf45ce2f58142cf32eff78dc5d8 /src/game.cpp
parent9581f6556ac1646b4d30c676403aba544e4edaec (diff)
downloadmana-dd79b36895a17b3da131197be66827e6809615f0.tar.gz
mana-dd79b36895a17b3da131197be66827e6809615f0.tar.bz2
mana-dd79b36895a17b3da131197be66827e6809615f0.tar.xz
mana-dd79b36895a17b3da131197be66827e6809615f0.zip
Added support for sticky windows as discussed with doener. Patch by AHarrison
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 819e863e..ed8ad827 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -202,6 +202,10 @@ void createGuiWindows(Network *network)
minimap->getHeight() + 30);*/
// Set initial window visibility
+ chatWindow->setSticky(true);
+ miniStatusWindow->setSticky(true);
+ menuWindow->setSticky(true);
+
chatWindow->setVisible(true);
miniStatusWindow->setVisible(true);
statusWindow->setVisible(false);
@@ -461,7 +465,30 @@ void Game::handleInput()
}
break;
- // Picking up items on the floor
+ // Attempt to hide all windows
+ case SDLK_h:
+ chatWindow->setVisible(false);
+ miniStatusWindow->setVisible(false);
+ statusWindow->setVisible(false);
+ menuWindow->setVisible(false);
+ buyDialog->setVisible(false);
+ sellDialog->setVisible(false);
+ buySellDialog->setVisible(false);
+ inventoryWindow->setVisible(false);
+ npcTextDialog->setVisible(false);
+ npcListDialog->setVisible(false);
+ skillDialog->setVisible(false);
+ //newSkillWindow->setVisible(false);
+ setupWindow->setVisible(false);
+ equipmentWindow->setVisible(false);
+ chargeDialog->setVisible(false);
+ tradeWindow->setVisible(false);
+ //buddyWindow->setVisible(false);
+ helpWindow->setVisible(false);
+ debugWindow->setVisible(false);
+ break;
+
+ // Picking up items on the floor
case SDLK_g:
case SDLK_z:
if (!chatWindow->isFocused())