summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-24 13:10:35 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-24 13:10:35 +0000
commit47824cdfc7c6cba04b91336e2a91abaac8c558b8 (patch)
treebab422c56a682d6d3d817a6de802c3b9c16a2f87 /crawl-ref/source/menu.cc
parentabe1935b440c1b521c125de7396e7b4b4760dcaf (diff)
downloadcrawl-ref-47824cdfc7c6cba04b91336e2a91abaac8c558b8.tar.gz
crawl-ref-47824cdfc7c6cba04b91336e2a91abaac8c558b8.zip
Add mouseclick handling for menus in tiles:
L-click will page down, R-click is treated like Escape. Change L-click on player from single turn search to (the more useful, I think) pickup, and add L-click to list of alternatives to call the pickup menu, so that clicking on the player icon twice will directly open the pickup menu. This is getting complicated: there are so few combinations of mouseclicks possible, but because they do different things under different circumstances this *really* needs to be documented somehow. Fix coloured hp/mp bars not updating during running. (During travel the map needs to be redrawn anyway, so also having to redraw the bars doesn't hurt any.) Also fix list_rotten to be readable from init.txt (and default to true). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3316 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r--crawl-ref/source/menu.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc
index 48aa0100bc..1b2b658ab0 100644
--- a/crawl-ref/source/menu.cc
+++ b/crawl-ref/source/menu.cc
@@ -176,10 +176,16 @@ bool Menu::process_key( int keyin )
case CK_ENTER:
return false;
case CK_ESCAPE:
+#ifdef USE_TILE
+ case CK_MOUSE_B2:
+#endif
sel.clear();
lastch = keyin;
return false;
case ' ': case CK_PGDN: case '>': case '\'':
+#ifdef USE_TILE
+ case CK_MOUSE_B1:
+#endif
nav = true;
repaint = page_down();
if (!repaint && !is_set(MF_EASY_EXIT) && !is_set(MF_NOWRAP))