/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/modules/admin/create_object.dm
29 строк
1 KB
DorainGrey
Updates the size of object spawn windows (#33408)
05 окт 2022, 00:15
Не верифицирован
05 окт 2022, 00:15
0a6b86b
Код
Авторство
О чём код?
/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=700x500") /datum/admins/proc/quick_create_object(var/mob/user) var/quick_create_object_html = null var/pathtext = null pathtext = input("Select the path of the object you wish to create.", "Path", "/obj") in list("/obj","/obj/structure","/obj/item","/obj/item/weapon","/obj/machinery","/obj/mecha") var path = text2path(pathtext) if (!quick_create_object_html) var/objectjs = null objectjs = jointext(typesof(path), ";") quick_create_object_html = file2text('html/create_object.html') quick_create_object_html = replacetext(quick_create_object_html, "null /* object types */", "\"[objectjs]\"") user << browse(replacetext(quick_create_object_html, "/* ref src */", "\ref[src]"), "window=quick_create_object;size=700x500")