actmenu_cb( const action_map &acm ) : ctxt( "ITEM_ACTIONS" ), am( acm ) { ctxt.register_action( "HELP_KEYBINDINGS" ); ctxt.register_action( "QUIT" ); for( const auto &id : am ) { ctxt.register_action( id.first, id.second.name ); } }
actmenu_cb( ) : ctxt("ITEM_ACTIONS") { ctxt.register_action("HELP_KEYBINDINGS"); ctxt.register_action("QUIT"); for( auto id : item_actions ) { ctxt.register_action( id.first, id.second.name ); } }