diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-11 20:01:06 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-11 20:01:06 +0000 |
commit | 4c540e1c4e99150305b9c5297928ed1794cec13c (patch) | |
tree | 3ce5ba4f11d96ba590256bdd446ae8204091a0a7 /crawl-ref/source/invent.cc | |
parent | f792f9b19c0dcdbe4166ad0dc543f704822bfa29 (diff) | |
download | crawl-ref-4c540e1c4e99150305b9c5297928ed1794cec13c.tar.gz crawl-ref-4c540e1c4e99150305b9c5297928ed1794cec13c.zip |
Generalize the menu toggle from InvMenu to Menu and use it to properly
tie ability descriptions into the menu.
Still haven't worked out how to update the titles, though. :(
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9412 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index cb0f5ececf..81bf34f5ed 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -299,7 +299,7 @@ void InvEntry::set_show_glyph(bool doshow) InvMenu::InvMenu(int mflags) : Menu(mflags, "inventory", false), type(MT_INVLIST), pre_select(NULL), - title_annotate(NULL), allow_toggle(false), menu_action(ACT_EXAMINE) + title_annotate(NULL) { mdisplay->set_num_columns(2); } @@ -750,13 +750,6 @@ bool InvMenu::process_key( int key ) draw_select_count(0, true); return (true); } - else if (key == '!') - { - sel.clear(); - menu_action = (action)((menu_action+1) % ACT_NUM); - update_title(); - return (true); - } return Menu::process_key( key ); } |