summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-05 15:21:03 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-05 15:21:03 +0000
commita3d677965e6a5c80754354d881c3fde7998503ca (patch)
tree9c8b4c00a04389b38077ddf17470e7c71e2c8f0f /crawl-ref/source/invent.h
parentb35bbebf2c3cfb01dcd429c19412452bb6024593 (diff)
downloadcrawl-ref-a3d677965e6a5c80754354d881c3fde7998503ca.tar.gz
crawl-ref-a3d677965e6a5c80754354d881c3fde7998503ca.zip
Make the toggle actually update the title for V and a.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9582 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r--crawl-ref/source/invent.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h
index 366b747ea6..231535c467 100644
--- a/crawl-ref/source/invent.h
+++ b/crawl-ref/source/invent.h
@@ -134,7 +134,7 @@ public:
// effect.
void set_title_annotator(invtitle_annotator fn);
- void set_title(MenuEntry *title);
+ void set_title(MenuEntry *title, bool first = true);
void set_title(const std::string &s);
// Loads items into the menu. If "procfn" is provided, it'll be called
@@ -159,6 +159,7 @@ public:
const menu_sort_condition *find_menu_sort_condition() const;
void sort_menu(std::vector<InvEntry*> &items,
const menu_sort_condition *cond);
+
protected:
bool process_key(int key);
void do_preselect(InvEntry *ie);