From 47824cdfc7c6cba04b91336e2a91abaac8c558b8 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 24 Jan 2008 13:10:35 +0000 Subject: 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 --- crawl-ref/source/initfile.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/initfile.cc') 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 -- cgit v1.2.3-54-g00ecf