Revert "TGUI alerts, lists, inputs"

This commit is contained in:
Letter N
2021-10-28 12:17:29 +08:00
committed by GitHub
parent 853ff1d8ad
commit bcdf96f274
362 changed files with 1149 additions and 1570 deletions
+3 -3
View File
@@ -17,16 +17,16 @@
to_chat(c, "<span class='notice'>***********************************************************</span>")
/datum/buildmode_mode/advanced/change_settings(client/c)
var/target_path = tgui_input_text(c, "Enter typepath:", "Typepath", "/obj/structure/closet")
var/target_path = input(c, "Enter typepath:", "Typepath", "/obj/structure/closet")
objholder = text2path(target_path)
if(!ispath(objholder))
objholder = pick_closest_path(target_path)
if(!objholder)
tgui_alert(c, "No path was selected")
alert("No path was selected")
return
else if(ispath(objholder, /area))
objholder = null
tgui_alert(c, "That path is not allowed.")
alert("That path is not allowed.")
return
/datum/buildmode_mode/advanced/handle_click(client/c, params, obj/object)