diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-16 15:48:28 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-16 15:48:28 +0000 |
commit | 54bfc8f5f26243e68353eeedb959864e6565de4c (patch) | |
tree | c7b82c5f497ab9f3bbfc5da435f60305738863ee /crawl-ref/source/externs.h | |
parent | eff8860c8c5cf24ffb3ff64e4b44af416d72b3d4 (diff) | |
download | crawl-ref-54bfc8f5f26243e68353eeedb959864e6565de4c.tar.gz crawl-ref-54bfc8f5f26243e68353eeedb959864e6565de4c.zip |
Added message_colour option to allow custom-colouring individual messages. This
does not affect formatted_mpr.
Moved low magic warning to the danger channel and added a message_colour option
to colour it lightcyan in the stock init.txt.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1050 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index 4d0e817632..cd7002855c 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -1092,6 +1092,12 @@ struct colour_mapping int colour; }; +struct message_colour_mapping +{ + message_filter message; + int colour; +}; + struct feature_def { unsigned short symbol; // symbol used for seen terrain @@ -1256,6 +1262,7 @@ public: std::vector<sound_mapping> sound_mappings; std::vector<colour_mapping> menu_colour_mappings; + std::vector<message_colour_mapping> message_colour_mappings; int sort_menus; // 0 = always, -1 = never, number = beyond // that size. @@ -1371,6 +1378,10 @@ private: void add_cset_override(char_set_type set, dungeon_char_type dc, unsigned char symbol); void add_feature_override(const std::string &); + + void add_message_colour_mappings(const std::string &); + void add_message_colour_mapping(const std::string &); + message_filter parse_message_filter(const std::string &s); void set_default_activity_interrupts(); void clear_activity_interrupts(FixedVector<bool, NUM_AINTERRUPTS> &eints); |