There's a bounty for this right? i spent nearly two full days at this

This commit is contained in:
SandPoot
2021-10-05 18:10:32 -03:00
parent 59f33198f1
commit 5aa12b4716
270 changed files with 770 additions and 779 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
to_chat(c, "<span class='notice'>***********************************************************</span>")
/datum/buildmode_mode/advanced/change_settings(client/c)
var/target_path = input(c, "Enter typepath:", "Typepath", "/obj/structure/closet")
var/target_path = tgui_input_text(c, "Enter typepath:", "Typepath", "/obj/structure/closet")
objholder = text2path(target_path)
if(!ispath(objholder))
objholder = pick_closest_path(target_path)
+2 -2
View File
@@ -28,10 +28,10 @@
to_chat(c, "<span class='notice'>***********************************************************</span>")
/datum/buildmode_mode/area_edit/change_settings(client/c)
var/target_path = input(c, "Enter typepath:", "Typepath", "/area")
var/target_path = tgui_input_text(c, "Enter typepath:", "Typepath", "/area")
var/areatype = text2path(target_path)
if(ispath(areatype,/area))
var/areaname = input(c, "Enter area name:", "Area name", "Area")
var/areaname = tgui_input_text(c, "Enter area name:", "Area name", "Area")
if(!areaname || !length(areaname))
return
storedarea = new areatype
+5 -5
View File
@@ -14,19 +14,19 @@
to_chat(c, "<span class='notice'>***********************************************************</span>")
/datum/buildmode_mode/boom/change_settings(client/c)
devastation = input(c, "Range of total devastation. -1 to none", text("Input")) as num|null
devastation = tgui_input_num(c, "Range of total devastation. -1 to none", text("Input"))
if(devastation == null)
devastation = -1
heavy = input(c, "Range of heavy impact. -1 to none", text("Input")) as num|null
heavy = tgui_input_num(c, "Range of heavy impact. -1 to none", text("Input"))
if(heavy == null)
heavy = -1
light = input(c, "Range of light impact. -1 to none", text("Input")) as num|null
light = tgui_input_num(c, "Range of light impact. -1 to none", text("Input"))
if(light == null)
light = -1
flash = input(c, "Range of flash. -1 to none", text("Input")) as num|null
flash = tgui_input_num(c, "Range of flash. -1 to none", text("Input"))
if(flash == null)
flash = -1
flames = input(c, "Range of flames. -1 to none", text("Input")) as num|null
flames = tgui_input_num(c, "Range of flames. -1 to none", text("Input"))
if(flames == null)
flames = -1
+1 -1
View File
@@ -12,7 +12,7 @@
to_chat(c, "<span class='notice'>***********************************************************</span>")
/datum/buildmode_mode/fill/change_settings(client/c)
var/target_path = input(c, "Enter typepath:" ,"Typepath","/obj/structure/closet")
var/target_path = tgui_input_text(c, "Enter typepath:" ,"Typepath","/obj/structure/closet")
objholder = text2path(target_path)
if(!ispath(objholder))
objholder = pick_closest_path(target_path)
+1 -1
View File
@@ -16,7 +16,7 @@
for(var/path in gen_paths)
var/datum/mapGenerator/MP = path
options[initial(MP.buildmode_name)] = path
var/type = input(c,"Select Generator Type","Type") as null|anything in options
var/type = tgui_input_list(c,"Select Generator Type","Type", options)
if(!type)
return
@@ -22,8 +22,8 @@
valueholder = null
/datum/buildmode_mode/varedit/change_settings(client/c)
varholder = input(c, "Enter variable name:" ,"Name", "name")
varholder = tgui_input_text(c, "Enter variable name:" ,"Name", "name")
if(!vv_varname_lockcheck(varholder))
return