mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
@@ -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
|
||||
|
||||
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user