summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-07-06 21:37:55 -0400
committerNeil Moore <neil@s-z.org>2012-07-06 21:49:03 -0400
commitb69f4dde092cb7fa861757971b7d02db901db9e8 (patch)
treecdcac4702213c396830d2aa00e80d3ede07d1c6d /crawl-ref/source/invent.h
parent51a2f406346d6c5f295618cf0563e21c00cca7be (diff)
downloadcrawl-ref-b69f4dde092cb7fa861757971b7d02db901db9e8.tar.gz
crawl-ref-b69f4dde092cb7fa861757971b7d02db901db9e8.zip
Don't display feature backgrounds in most item menus.
Now most item menus, such as the pick-up and stash menus, use the same background tile as inventory slots. This is in part to reduce clutter and make the item easy to see, but also to avoid showing the wrong background tile for off-level items. Only Ctrl-X still displays the feature, for consistency with monsters in the same menu. Fixes #2303, #5756.
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r--crawl-ref/source/invent.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h
index 99c937f926..c791b2f276 100644
--- a/crawl-ref/source/invent.h
+++ b/crawl-ref/source/invent.h
@@ -86,11 +86,13 @@ private:
protected:
static bool show_cursor;
+ // Should we show the floor tile, etc?
+ bool show_background;
public:
const item_def *item;
- InvEntry(const item_def &i);
+ InvEntry(const item_def &i, bool show_bg = false);
std::string get_text(const bool need_cursor = false) const;
void set_show_glyph(bool doshow);
static void set_show_cursor(bool doshow);