summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.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/initfile.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/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 552bec13fd..b9dd3f493e 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -651,7 +651,7 @@ void game_options::reset_options()
easy_unequip = true;
easy_butcher = true;
always_confirm_butcher = false;
- list_rotten = false;
+ list_rotten = true;
easy_confirm = CONFIRM_SAFE_EASY;
easy_quit_item_prompts = true;
hp_warning = 10;
@@ -1778,6 +1778,10 @@ void game_options::read_option_line(const std::string &str, bool runscript)
{
always_confirm_butcher = read_bool( field, always_confirm_butcher );
}
+ else if (key == "list_rotten")
+ {
+ list_rotten = read_bool( field, list_rotten );
+ }
else if (key == "lua_file" && runscript)
{
#ifdef CLUA_BINDINGS