From 17d51dec2e404928c52bd4358c66703285f1eb0f Mon Sep 17 00:00:00 2001 From: ennewalker Date: Fri, 28 Mar 2008 05:31:36 +0000 Subject: * Monster list is now placed to the left of the view if the terminal is wide enough to make better use of available space. * Added init.txt options for monster list placement. mlist_min_height - minimum items in the monster list (default: 5) mlist_force_inline - force the monster list to be between hud and messages * Fixed some (but not all) problems with the monster list being updated properly when monsters appear. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3909 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/initfile.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crawl-ref/source/initfile.cc') diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 61687f486a..296d30fdba 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -612,6 +612,8 @@ void game_options::reset_options() view_max_width = VIEW_BASE_WIDTH; view_max_height = VIEW_MIN_HEIGHT; + mlist_min_height = 5; + mlist_force_inline = false; view_lock_x = true; view_lock_y = true; @@ -2140,6 +2142,16 @@ void game_options::read_option_line(const std::string &str, bool runscript) else if (view_max_height > GYM + 1) view_max_height = GYM + 1; } + else if (key == "mlist_min_height") + { + mlist_min_height = atoi(field.c_str()); + if (mlist_min_height < 0) + view_max_height = 0; + } + else if (key == "mlist_force_inline") + { + mlist_force_inline = _read_bool(field, mlist_force_inline); + } else if (key == "view_lock_x") { view_lock_x = _read_bool(field, view_lock_x); -- cgit v1.2.3-54-g00ecf