From 1a3922fd4a76605598293aff58591a77f37c0bb1 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 6 Mar 2009 09:29:24 +0000 Subject: Tiles again: * Store index of last cell clicked on in inventory and suppress item description if you just clicked on it, so you can see the messages describing whatever you just did (should fix 2660578). * Allow right-click as a synonym for '!' when toggling ^, A, m. * Let shift left-click on avatar standing on altar = prayer. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9343 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 1f0f006e4c..c7e92a6740 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -3357,13 +3357,18 @@ static void _detailed_god_description(god_type which_god) cgotoxy(1, bottom_line); formatted_string::parse_string( - "Press '!' to toggle between the overview and the more detailed " +#ifndef USE_TILE + "Press '!'" +#else + "Right-click" +#endif + " to toggle between the overview and the more detailed " "description.").display(); mouse_control mc(MOUSE_MODE_MORE); const int keyin = getch(); - if (keyin == '!') + if (keyin == '!' || keyin == CK_MOUSE_CMD) describe_god(which_god, true); } @@ -3594,13 +3599,17 @@ void describe_god( god_type which_god, bool give_title ) cgotoxy(1, bottom_line); textcolor(LIGHTGREY); formatted_string::parse_string( - "Press '!' to toggle between the overview and the more detailed " +#ifndef USE_TILE + "Press '!'" +#else + "Right-click" +#endif + " to toggle between the overview and the more detailed " "description.").display(); mouse_control mc(MOUSE_MODE_MORE); - const int keyin = getch(); - if (keyin == '!') + if (keyin == '!' || keyin == CK_MOUSE_CMD) _detailed_god_description(which_god); } -- cgit v1.2.3-54-g00ecf