diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-19 22:30:42 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-19 22:30:42 +0000 |
commit | d67f41ebf91d23eabe1640a2910cdae40358b77c (patch) | |
tree | ba68939920e514731ce118cf697e51357480d140 /crawl-ref/source/stash.cc | |
parent | 55901dbf5e38817170440cae2f80df7b468d52f5 (diff) | |
download | crawl-ref-d67f41ebf91d23eabe1640a2910cdae40358b77c.tar.gz crawl-ref-d67f41ebf91d23eabe1640a2910cdae40358b77c.zip |
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
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r-- | crawl-ref/source/stash.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc index 89c2106cb4..b0555abe6a 100644 --- a/crawl-ref/source/stash.cc +++ b/crawl-ref/source/stash.cc @@ -394,6 +394,7 @@ public: StashMenu() : InvMenu(MF_SINGLESELECT), can_travel(false) { set_type(MT_PICKUP); + set_tag("stash"); // override "inventory" tag } unsigned char getkey() const; public: @@ -1541,6 +1542,7 @@ void StashTracker::display_search_results( bool travelable = can_travel_interlevel(); StashSearchMenu stashmenu; + stashmenu.set_tag("stash"); stashmenu.can_travel = travelable; std::string title = "match"; |