summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-31 01:07:33 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-31 01:07:33 +0000
commit51cf2e590f33e894236ab640f2ffa58aff3a92ec (patch)
treea4867edae9afa6041faf53de9fe32ccfc066fd1e /crawl-ref/source/menu.h
parentc6f2e85b44fe574cff0a59607fe1b5a366954b62 (diff)
downloadcrawl-ref-51cf2e590f33e894236ab640f2ffa58aff3a92ec.tar.gz
crawl-ref-51cf2e590f33e894236ab640f2ffa58aff3a92ec.zip
drop_filter can now match against the same keywords as menu_colour, minus the
identification status and chunk/corpse information. drop_filter now defaults to useless_item You can prevent an init file variable from being changed by turning it into a constant. Clear variables and aliases when resetting the game options. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8043 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r--crawl-ref/source/menu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h
index 407c41210e..9ddc336e65 100644
--- a/crawl-ref/source/menu.h
+++ b/crawl-ref/source/menu.h
@@ -138,6 +138,11 @@ struct MenuEntry
selected_qty = (qty == -1? quantity : qty);
}
+ virtual std::string get_filter_text() const
+ {
+ return get_text();
+ }
+
#ifdef USE_TILE
virtual bool tile(int &idx, TextureID &tex) const
{