From 5012d3f5efff4f5bfec1bf9b623698dd7a968e5a Mon Sep 17 00:00:00 2001 From: Gorock Date: Sun, 1 Jan 2023 14:16:27 +0100 Subject: [PATCH] Make chem dispenser reagent search better (#72358) Improving the chem dispenser reagent search by using a List. This is my first Pull Request for tgstation. I would like to know how to add Test for this change. Make the Input more fun to Use by letting the player search in a reagent list. Helps for typing complicated chemical names. --- code/modules/reagents/chemistry/holder.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/reagents/chemistry/holder.dm b/code/modules/reagents/chemistry/holder.dm index 08b63ec404f..8ee794e6114 100644 --- a/code/modules/reagents/chemistry/holder.dm +++ b/code/modules/reagents/chemistry/holder.dm @@ -1911,7 +1911,7 @@ ui_reaction_id = text2path(params["id"]) return TRUE if("search_reagents") - var/input_reagent = (input("Enter the name of any reagent", "Input") as text|null) + var/input_reagent = tgui_input_list(usr, "Select reagent", "Reagent", GLOB.chemical_name_list) input_reagent = get_reagent_type_from_product_string(input_reagent) //from string to type var/datum/reagent/reagent = find_reagent_object_from_type(input_reagent) if(!reagent)