mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
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.
10 lines
454 B
Plaintext
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") |