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
+1 -1
View File
@@ -108,7 +108,7 @@
to_chat(user, span_notice("You add some more writing material to the [src] with the [blueprint]!"))
return
else if(blueprint.uses_charges && blueprint.charges) //Getting from another with limited charges.
var/to_add = tgui_input_number(user, "How many charges do you want to add to the [src]?", "[blueprint]", missing_charges)
var/to_add = tgui_input_number(user, "How many charges do you want to add to the [src]?", "[blueprint]", missing_charges, blueprint.charges)
if(!isnull(to_add) && blueprint.charges >= to_add)
to_chat(user, span_notice("You add some more writing material to the [src] with the [blueprint]!"))
blueprint.charges -= to_add
+1 -1
View File
@@ -17,7 +17,7 @@
shrinking = FALSE
our_message = "What should the size limit be? Anyone under this limit will be grown to this size. (1 = 100%, etc)"
size_limit = tgui_input_number(user, our_message, "Pick a Size", 1)
size_limit = tgui_input_number(user, our_message, "Pick a Size", 1, round_value=FALSE)
return ..()
@@ -59,7 +59,7 @@
var/new_bearing
if(free_rotate)
new_bearing = tgui_input_number(usr, "What bearing do you want to rotate \the [src] to?", "[name]")
new_bearing = tgui_input_number(usr, "What bearing do you want to rotate \the [src] to?", "[name]", 0, 360, 0)
new_bearing = round(new_bearing)
if(new_bearing <= -1 || new_bearing > 360)
to_chat(user, "<span class='warning'>Rotating \the [src] [new_bearing] degrees would be a waste of time.</span>")
@@ -176,7 +176,7 @@
var/new_bearing
if(free_rotate)
new_bearing = tgui_input_number(usr, "What bearing do you want to rotate \the [src] to?", "[name]")
new_bearing = tgui_input_number(usr, "What bearing do you want to rotate \the [src] to?", "[name]", 0, 360, 0)
new_bearing = round(new_bearing)
if(new_bearing <= -1 || new_bearing > 360)
to_chat(user, "<span class='warning'>Rotating \the [src] [new_bearing] degrees would be a waste of time.</span>")