From 4c540e1c4e99150305b9c5297928ed1794cec13c Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 11 Mar 2009 20:01:06 +0000 Subject: 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 --- crawl-ref/source/invent.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'crawl-ref/source/invent.cc') 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 ); } -- cgit v1.2.3-54-g00ecf