Revert "TGUI alerts, lists, inputs"
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user