anchor.diff: +#define AUTOLATHE_MAIN_MENU       1
  +#define AUTOLATHE_CATEGORY_MENU   2
  +#define AUTOLATHE_SEARCH_MENU     3
  +
   /obj/machinery/autolathe
   	name = "autolathe"
   	desc = "It produces items using metal and glass."
  
positive.code: 
  	var/datum/design/being_built
  	var/datum/research/files
  	var/selected_category
  	var/screen = 1
  
  
negative.code: 	dat += "</div>"
  	return dat
  
  /obj/machinery/autolathe/proc/search_win(mob/user)
  	var/dat = "<A href='?src=\ref[src];menu=[AUTOLATHE_MAIN_MENU]'>Return to main menu</A>"
  	dat += "<div class='statusDisplay'><h3>Search results:</h3><br>"
  	dat += "<b>Metal amount:</b> [src.m_amount] / [max_m_amount] cm<sup>3</sup><br>"
  	dat += "<b>Glass amount:</b> [src.g_amount] / [max_g_amount] cm<sup>3</sup><hr>"
  
  	for(var/datum/design/D in matching_designs)
  		if(disabled || !can_build(D))
  			dat += "<span class='linkOff'>[D.name]</span>"
  		else
  			dat += "<a href='?src=\ref[src];make=[D.id];multiplier=1'>[D.name]</a>"
  
  		if(ispath(D.build_path, /obj/item/stack))
  			var/max_multiplier = min(50, D.materials["$metal"] ?round(m_amount/D.materials["$metal"]):INFINITY,D.materials["$glass"]?round(g_amount/D.materials["$glass"]):INFINITY)
  			if (max_multiplier>10 && !disabled)
  				dat += " <a href='?src=\ref[src];make=[D.id];multiplier=10'>x10</a>"
  			if (max_multiplier>25 && !disabled)
  				dat += " <a href='?src=\ref[src];make=[D.id];multiplier=25'>x25</a>"
  			if(max_multiplier > 0 && !disabled)
  				dat += " <a href='?src=\ref[src];make=[D.id];multiplier=[max_multiplier]'>x[max_multiplier]</a>"
  
  		dat += "[get_design_cost(D)]<br>"
  
  	dat += "</div>"
  	return dat
  
  /obj/machinery/autolathe/proc/can_build(var/datum/design/D)
  	var/coeff = (ispath(D.build_path,/obj/item/stack) ? 1 : 2 ** prod_coeff)
  
  