Attached Files |
0001-Make-toggle-god-screen.patch [^] (2,061 bytes) 2013-10-24 17:16 [Show Content] [Hide Content]From ec475d76939168520f0d58295755be892ccfa5d9 Mon Sep 17 00:00:00 2001
From: BlackSheep <chris.terenzi@gmail.com>
Date: Thu, 24 Oct 2013 11:09:23 -0400
Subject: [PATCH] Make ^ toggle god screen
---
crawl-ref/source/describe.cc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 5de6e7d..be39358 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -4436,11 +4436,11 @@ static void _detailed_god_description(god_type which_god)
cgotoxy(1, bottom_line);
formatted_string::parse_string(
- "Press '<w>!</w>'"
+ "Press '<w>!</w>' or '<w>^</w>'"
#ifdef USE_TILE_LOCAL
" or <w>Right-click</w>"
#endif
- " to toggle between the overview and the more detailed "
+ " to toggle between the overview and more detailed "
"description.").display();
mouse_control mc(MOUSE_MODE_MORE);
@@ -4453,7 +4453,7 @@ static void _detailed_god_description(god_type which_god)
you.nemelex_sacrificing.set(num, !you.nemelex_sacrificing[num]);
_detailed_god_description(which_god);
}
- else if (keyin == '!' || keyin == CK_MOUSE_CMD)
+ else if (keyin == '!' || keyin == CK_MOUSE_CMD || keyin == '^')
describe_god(which_god, true);
}
@@ -4748,16 +4748,16 @@ void describe_god(god_type which_god, bool give_title)
cgotoxy(1, bottom_line);
textcolor(LIGHTGREY);
formatted_string::parse_string(
- "Press '<w>!</w>'"
+ "Press '<w>!</w>' or '<w>^</w>'"
#ifdef USE_TILE_LOCAL
" or <w>Right-click</w>"
#endif
- " to toggle between the overview and the more detailed "
+ " to toggle between the overview and more detailed "
"description.").display();
mouse_control mc(MOUSE_MODE_MORE);
const int keyin = getchm();
- if (keyin == '!' || keyin == CK_MOUSE_CMD)
+ if (keyin == '!' || keyin == CK_MOUSE_CMD || keyin == '^')
_detailed_god_description(which_god);
}
--
1.8.1.2
|