From 54bfc8f5f26243e68353eeedb959864e6565de4c Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 16 Mar 2007 15:48:28 +0000 Subject: 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 --- crawl-ref/source/externs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'crawl-ref/source/externs.h') 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_mappings; std::vector menu_colour_mappings; + std::vector 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 &eints); -- cgit v1.2.3-54-g00ecf