Revert "TGUI alerts, lists, inputs"
This commit is contained in:
@@ -407,10 +407,10 @@ All the important duct code:
|
||||
. += "<span class='notice'>It's current color and layer are [duct_color] and [duct_layer]. Use in-hand to change.</span>"
|
||||
|
||||
/obj/item/stack/ducts/attack_self(mob/user)
|
||||
var/new_layer = tgui_input_list(user, "Select a layer", "Layer", layers)
|
||||
var/new_layer = input("Select a layer", "Layer") as null|anything in layers
|
||||
if(new_layer)
|
||||
duct_layer = new_layer
|
||||
var/new_color = tgui_input_list(user, "Select a color", "Color", GLOB.pipe_paint_colors)
|
||||
var/new_color = input("Select a color", "Color") as null|anything in GLOB.pipe_paint_colors
|
||||
if(new_color)
|
||||
duct_color = new_color
|
||||
add_atom_colour(GLOB.pipe_paint_colors[new_color], FIXED_COLOUR_PRIORITY)
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
///changing input ammount with a window
|
||||
/obj/machinery/plumbing/bottler/interact(mob/user)
|
||||
. = ..()
|
||||
wanted_amount = clamp(round(tgui_input_num(user,"maximum is 100u","set ammount to fill with"), 1), 1, 100)
|
||||
wanted_amount = clamp(round(input(user,"maximum is 100u","set ammount to fill with") as num|null, 1), 1, 100)
|
||||
reagents.clear_reagents()
|
||||
to_chat(user, "<span class='notice'> The [src] will now fill for [wanted_amount]u.</span>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user