[MIRROR] Round value adjustments for react (#7767)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-02-16 11:27:03 -07:00
committed by GitHub
parent ee060aa676
commit 937090b0ec
33 changed files with 295 additions and 90 deletions

View File

@@ -204,7 +204,7 @@
OutputBeaker = null
if("adjust temp")
target_temp = tgui_input_number(usr, "Choose a target temperature.", "Temperature.", T20C)
target_temp = tgui_input_number(usr, "Choose a target temperature.", "Temperature.", T20C, max_temp, min_temp, round_value = FALSE)
target_temp = CLAMP(target_temp, min_temp, max_temp)
update_icon()

View File

@@ -100,7 +100,7 @@
if(istype(O,/obj/item/stack/material))
if(O.get_material_name() == MAT_PLASTIC)
var/obj/item/stack/S = O
var/input_amount = tgui_input_number(user, "How many sheets would you like to add?", "Add plastic", 0, S.get_amount(), 0, 0, TRUE)
var/input_amount = tgui_input_number(user, "How many sheets would you like to add?", "Add plastic", 0, S.get_amount())
if(input_amount == 0)
return
var/plastic_input = input_amount * value_plastic
@@ -179,7 +179,7 @@
if(!beaker.reagents.total_volume)
to_chat(user, SPAN_WARNING("Chemical storage is empty!"))
return
var/injector_amount = tgui_input_number(user, "How many injectors would you like?", "Make small injectors", 0, 100, 0, 0, TRUE)
var/injector_amount = tgui_input_number(user, "How many injectors would you like?", "Make small injectors", 0, 100)
if(injector_amount > 0)
switch(material)
if("mold plastic")
@@ -210,7 +210,7 @@
if(!beaker.reagents.total_volume)
to_chat(user, SPAN_WARNING("Chemical storage is empty!"))
return
var/injector_amount = tgui_input_number(user, "How many injectors would you like?", "Make large injectors", 0, 100, 0, 0, TRUE)
var/injector_amount = tgui_input_number(user, "How many injectors would you like?", "Make large injectors", 0, 100)
if(injector_amount > 0)
switch(material)
if("mold plastic")