summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-17 02:55:58 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-17 02:55:58 +0000
commit0bc00794625760f93f2d1fd20a78d02aaa7299f9 (patch)
tree871ae18ee6f478dc7c331bf95011a9efa183a6fc /crawl-ref/source/initfile.cc
parent27a123d67702ee2b24b29df5374cb9a95f53d5af (diff)
downloadcrawl-ref-0bc00794625760f93f2d1fd20a78d02aaa7299f9.tar.gz
crawl-ref-0bc00794625760f93f2d1fd20a78d02aaa7299f9.zip
A handful of new game options:
menu_colour_prefix_id, if set to true, causes the identification state of an object to be prefixed to the string menu colour regexes are matched against (but does not alter the string displayed on the screen). menu_colour_prefix_class, if set to true, prefixes the object's base type to the string menu colour regexes are matched against. user_note_prefix can be set to a string which will be prefixed to manual user notes when they are displayed, to make them easier to find. detailed_hunger, if set to true, will cause three new informational-only hunger states to be displayed: near starving, very hungry and very full. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2121 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 1b885bddfd..76171d5d4f 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -610,6 +610,7 @@ void game_options::reset_options()
autopickup_no_burden = false;
use_notes = true;
+ user_note_prefix = "";
note_all_skill_levels = false;
note_skill_max = false;
note_all_spells = false;
@@ -661,6 +662,7 @@ void game_options::reset_options()
assign_item_slot = SS_FORWARD;
macro_meta_entry = true;
+ detailed_hunger = false;
// 10 was the cursor step default on Linux.
level_map_cursor_step = 7;
@@ -775,6 +777,8 @@ void game_options::reset_options()
travel_stop_message.clear();
sound_mappings.clear();
menu_colour_mappings.clear();
+ menu_colour_prefix_class = false;
+ menu_colour_prefix_id = false;
message_colour_mappings.clear();
drop_filter.clear();
map_file_name.clear();
@@ -2065,6 +2069,11 @@ void game_options::read_option_line(const std::string &str, bool runscript)
{
use_notes = read_bool( field, use_notes );
}
+ else if (key == "user_note_prefix")
+ {
+ // field is already cleaned up from trim_string()
+ user_note_prefix = field;
+ }
else if (key == "note_skill_max")
{
note_skill_max = read_bool( field, note_skill_max );
@@ -2302,6 +2311,10 @@ void game_options::read_option_line(const std::string &str, bool runscript)
{
macro_meta_entry = read_bool(field, macro_meta_entry);
}
+ else if (key == "detailed_hunger")
+ {
+ detailed_hunger = read_bool(field, detailed_hunger);
+ }
else if (key == "stop_travel" || key == "travel_stop_message")
{
std::vector<std::string> fragments = split_string(",", field);
@@ -2458,6 +2471,16 @@ void game_options::read_option_line(const std::string &str, bool runscript)
}
}
}
+ else if (key == "menu_colour_prefix_class" ||
+ key == "menu_color_prefix_class")
+ {
+ menu_colour_prefix_class = read_bool(field, menu_colour_prefix_class);
+ }
+ else if (key == "menu_colour_prefix_id" ||
+ key == "menu_color_prefix_id")
+ {
+ menu_colour_prefix_id = read_bool(field, menu_colour_prefix_id);
+ }
else if (key == "message_colour" || key == "message_color")
{
add_message_colour_mappings(field);