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
+4 -4
View File
@@ -1,6 +1,6 @@
/datum/buildmode_mode/fill
key = "fill"
use_corner_selection = TRUE
var/objholder = null
@@ -12,16 +12,16 @@
to_chat(c, "<span class='notice'>***********************************************************</span>")
/datum/buildmode_mode/fill/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 has been selected.")
alert("No path has been selected.")
return
else if(ispath(objholder, /area))
objholder = null
tgui_alert(c, "Area paths are not supported for this mode, use the area edit mode instead.")
alert("Area paths are not supported for this mode, use the area edit mode instead.")
return
deselect_region()