Round value adjustments for react (#15764)

* input adjustments

* .

* .
This commit is contained in:
Kashargul
2024-02-16 14:18:54 +01:00
committed by GitHub
parent 04c57ff76a
commit 59d751a9f9
29 changed files with 62 additions and 62 deletions
+3 -3
View File
@@ -196,7 +196,7 @@
set_linear_falloff_duration(round(amount * 10, world.tick_lag))
else if(href_list["setexpfalloff"])
var/amount = tgui_input_number(usr, "Set exponential sustain factor", "Exponential sustain factor")
var/amount = tgui_input_number(usr, "Set exponential sustain factor", "Exponential sustain factor", round_value=FALSE)
if(!isnull(amount))
set_exponential_drop_rate(round(amount, 0.00001))
@@ -206,7 +206,7 @@
set_volume(round(amount, 1))
else if(href_list["setdropoffvolume"])
var/amount = tgui_input_number(usr, "Set dropoff threshold", "Dropoff Threshold Volume")
var/amount = tgui_input_number(usr, "Set dropoff threshold", "Dropoff Threshold Volume", round_value=FALSE)
if(!isnull(amount))
set_dropoff_volume(round(amount, 0.01))
@@ -233,7 +233,7 @@
set_instrument(choice)
else if(href_list["setnoteshift"])
var/amount = tgui_input_number(usr, "Set note shift", "Note Shift")
var/amount = tgui_input_number(usr, "Set note shift", "Note Shift", null, note_shift_max, note_shift_min)
if(!isnull(amount))
note_shift = clamp(amount, note_shift_min, note_shift_max)