mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
Merge pull request #16722 from SabreML/game-panel-create-x
Makes the game panel window title more descriptive
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
GLOBAL_VAR(create_mob_html)
|
||||
|
||||
/datum/admins/proc/create_mob(mob/user)
|
||||
if(!GLOB.create_mob_html)
|
||||
var/mobjs = null
|
||||
mobjs = jointext(typesof(/mob), ";")
|
||||
GLOB.create_mob_html = file2text('html/create_object.html')
|
||||
GLOB.create_mob_html = replacetext(GLOB.create_mob_html, "$ATOM$", "Mob")
|
||||
GLOB.create_mob_html = replacetext(GLOB.create_mob_html, "null /* object types */", "\"[mobjs]\"")
|
||||
|
||||
user << browse(replacetext(GLOB.create_mob_html, "/* ref src */", UID()), "window=create_mob;size=425x475")
|
||||
|
||||
@@ -6,6 +6,7 @@ GLOBAL_LIST_INIT(create_object_forms, list(/obj, /obj/structure, /obj/machinery,
|
||||
var/objectjs = null
|
||||
objectjs = jointext(typesof(/obj), ";")
|
||||
GLOB.create_object_html = file2text('html/create_object.html')
|
||||
GLOB.create_object_html = replacetext(GLOB.create_object_html, "$ATOM$", "Object")
|
||||
GLOB.create_object_html = replacetext(GLOB.create_object_html, "null /* object types */", "\"[objectjs]\"")
|
||||
|
||||
user << browse(replacetext(GLOB.create_object_html, "/* ref src */", UID()), "window=create_object;size=425x475")
|
||||
@@ -17,6 +18,7 @@ GLOBAL_LIST_INIT(create_object_forms, list(/obj, /obj/structure, /obj/machinery,
|
||||
if(!html_form)
|
||||
var/objectjs = jointext(typesof(path), ";")
|
||||
html_form = file2text('html/create_object.html')
|
||||
html_form = replacetext(html_form, "$ATOM$", "Object")
|
||||
html_form = replacetext(html_form, "null /* object types */", "\"[objectjs]\"")
|
||||
GLOB.create_object_forms[path] = html_form
|
||||
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
GLOBAL_VAR(create_turf_html)
|
||||
|
||||
/datum/admins/proc/create_turf(mob/user)
|
||||
if(!GLOB.create_turf_html)
|
||||
var/turfjs = null
|
||||
turfjs = jointext(typesof(/turf), ";")
|
||||
GLOB.create_turf_html = file2text('html/create_object.html')
|
||||
GLOB.create_turf_html = replacetext(GLOB.create_turf_html, "$ATOM$", "Turf")
|
||||
GLOB.create_turf_html = replacetext(GLOB.create_turf_html, "null /* object types */", "\"[turfjs]\"")
|
||||
|
||||
user << browse(replacetext(GLOB.create_turf_html, "/* ref src */", UID()), "window=create_turf;size=425x475")
|
||||
|
||||
Reference in New Issue
Block a user