diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-25 17:47:37 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-25 17:47:37 +0000 |
commit | 7db47d41a1e8c783f0cf9aba41b835cc9950fc96 (patch) | |
tree | 1fe47a2e3e92ee58a1a49d116202192f8bfd5b6e /crawl-ref/source/invent.cc | |
parent | b94b86b02e55c4d458a16cd95f32c943eadff57c (diff) | |
download | crawl-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.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 5c4c7ecad5..fbef463669 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -268,6 +268,13 @@ InvShowPrices::~InvShowPrices() InvEntry::set_show_prices(false); } +InvMenu::InvMenu(int mflags) + : Menu(mflags, "inventory"), type(MT_INVLIST), pre_select(NULL), + title_annotate(NULL) +{ + mdisplay->set_num_columns(2); +} + // Returns vector of item_def pointers to each item_def in the given // vector. Note: make sure the original vector stays around for the lifetime // of the use of the item pointers, or mayhem results! |