From 9434334816f9a2404a18876899d74df04daab77f Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 30 Jan 2008 15:59:37 +0000 Subject: 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 --- crawl-ref/source/initfile.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crawl-ref/source/initfile.cc') 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 -- cgit v1.2.3-54-g00ecf