Files
Aurora.3/code/modules/admin/create_object.dm
Mykhailo Bykhovtsev 76c630dcfb Updating spawn(Create Object) for admin panel (#5442)
Create Object now populates list of objects instantly. Compared to original 3-4 seconds of freezes.
Quick Create Object was removed due to regular being extremely fast.
2018-10-28 11:02:17 +01:00

10 lines
454 B
Plaintext

/var/create_object_html = null
/datum/admins/proc/create_object(var/mob/user)
if (!create_object_html)
var/objectjs = null
objectjs = jointext(typesof(/obj), ";")
create_object_html = file2text('html/create_object.html')
create_object_html = replacetext(create_object_html, "null /* object types */", "\"[objectjs]\"")
user << browse(replacetext(create_object_html, "/* ref src */", "\ref[src]"), "window=create_object;size=425x475")