diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-28 05:31:36 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-28 05:31:36 +0000 |
commit | 17d51dec2e404928c52bd4358c66703285f1eb0f (patch) | |
tree | 0dfd58f79f2359a887fbb94a65c68d33b426f324 /crawl-ref/source/initfile.cc | |
parent | e7c257339952a377b86b78e88397e35c12851a87 (diff) | |
download | crawl-ref-17d51dec2e404928c52bd4358c66703285f1eb0f.tar.gz crawl-ref-17d51dec2e404928c52bd4358c66703285f1eb0f.zip |
* 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
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 12 |
1 files changed, 12 insertions, 0 deletions
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); |