From 0f8cd49c9c18260156782afc65bbea7b30a92804 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Fri, 27 Nov 2009 01:40:34 -0800 Subject: Add third menu action type ACT_MISC To the menu actions ACT_EXECUTE and ACT_EXAMINE add the third action type ACT_MISC, for things like deleting menu entries. The member "allow_toggle" has been changed to "action_cycle", with the possible values CYCLE_NONE (default) , CYCLE_TOGGLE (allow_toggle == true), and CYCLE_CYCLE (cycle through all three possible action types). --- crawl-ref/source/directn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index f478cb7130..11e887c728 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -604,7 +604,7 @@ void full_describe_view() desc_menu.set_tag("pickup"); desc_menu.set_type(MT_PICKUP); // necessary for sorting of the item submenu - desc_menu.allow_toggle = true; + desc_menu.action_cycle = Menu::CYCLE_TOGGLE; // Don't make a menu so tall that we recycle hotkeys on the same page. if (list_mons.size() + list_items.size() + list_features.size() > 52 -- cgit v1.2.3-54-g00ecf