From d67f41ebf91d23eabe1640a2910cdae40358b77c Mon Sep 17 00:00:00 2001 From: haranp Date: Fri, 19 Oct 2007 22:30:42 +0000 Subject: Menus are now tagged. Menu colours now only apply to a menu with a matching tag, unless the menu colour tag is empty or "any". Menu colours are specified as tag:colour:pattern, where the "tag:" part is optional (default is empty tag, i.e., all menus.) The following menu tags exist: ability, description, equip, help, inventory, notes, resists, spell, stash. Default .crawlrc should probably be changed (and the docs, too...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2493 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/invent.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/invent.h') diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h index 46b30a33c2..74386687f0 100644 --- a/crawl-ref/source/invent.h +++ b/crawl-ref/source/invent.h @@ -89,7 +89,8 @@ public: virtual int highlight_colour() const { return menu_colour(get_text(), - menu_colour_item_prefix( *( (item_def*) item) ) ); + menu_colour_item_prefix( *( (item_def*) item) ), + tag ); } @@ -108,7 +109,7 @@ class InvMenu : public Menu { public: InvMenu(int mflags = MF_MULTISELECT) - : Menu(mflags), type(MT_INVLIST), pre_select(NULL), + : Menu(mflags, "inventory"), type(MT_INVLIST), pre_select(NULL), title_annotate(NULL) { } -- cgit v1.2.3-54-g00ecf