summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-25 17:47:37 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-25 17:47:37 +0000
commit7db47d41a1e8c783f0cf9aba41b835cc9950fc96 (patch)
tree1fe47a2e3e92ee58a1a49d116202192f8bfd5b6e /crawl-ref/source/invent.h
parentb94b86b02e55c4d458a16cd95f32c943eadff57c (diff)
downloadcrawl-ref-7db47d41a1e8c783f0cf9aba41b835cc9950fc96.tar.gz
crawl-ref-7db47d41a1e8c783f0cf9aba41b835cc9950fc96.zip
More graphical menu improvements. Inventory menus now have columns. Long entries are now wrapped and then truncated.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7296 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r--crawl-ref/source/invent.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h
index 8cdabe01b1..5e5e95f53a 100644
--- a/crawl-ref/source/invent.h
+++ b/crawl-ref/source/invent.h
@@ -117,11 +117,7 @@ public:
class InvMenu : public Menu
{
public:
- InvMenu(int mflags = MF_MULTISELECT)
- : Menu(mflags, "inventory"), type(MT_INVLIST), pre_select(NULL),
- title_annotate(NULL)
- {
- }
+ InvMenu(int mflags = MF_MULTISELECT);
unsigned char getkey() const;
@@ -155,6 +151,8 @@ public:
// of the use of the item pointers, or mayhem results!
static std::vector<const item_def*> xlat_itemvect(
const std::vector<item_def> &);
+
+ virtual int max_columns() const { return 2; }
protected:
bool process_key(int key);
void do_preselect(InvEntry *ie);