summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-30 15:59:37 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-30 15:59:37 +0000
commit9434334816f9a2404a18876899d74df04daab77f (patch)
tree02fe8f1eb47e421b3be3003238a584a7533dc552 /crawl-ref/source/initfile.cc
parent9033470b12d90d2f12d255720e76389166f7f566 (diff)
downloadcrawl-ref-9434334816f9a2404a18876899d74df04daab77f.tar.gz
crawl-ref-9434334816f9a2404a18876899d74df04daab77f.zip
Show status captions in brown by default with an option to change it. We probably want to move the status area code to Lua eventually.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3378 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index c4530e341a..d270bb5dab 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -693,6 +693,7 @@ void game_options::reset_options()
// [ds] Default to jazzy colours.
detected_item_colour = GREEN;
detected_monster_colour= LIGHTRED;
+ status_caption_colour = BROWN;
#ifdef USE_TILE
classic_item_colours = true;
@@ -1915,6 +1916,15 @@ void game_options::read_option_line(const std::string &str, bool runscript)
// here as well.
heap_brand = curses_attribute(field);
}
+ else if (key == "status_caption_colour")
+ {
+ const int col = str_to_colour( field );
+ if (col != -1)
+ status_caption_colour = col;
+ else
+ crawl_state.add_startup_error(
+ make_stringf("Bad status_caption_colour -- %s\n", field.c_str()));
+ }
else if (key == "weapon")
{
// choose this weapon for classes that get choice