TGUI API improvements port

This commit is contained in:
Casey
2022-05-29 13:43:55 -04:00
committed by CHOMPStation2
parent 52e04e5232
commit a08c985862
36 changed files with 674 additions and 272 deletions

View File

@@ -23,6 +23,10 @@ SUBSYSTEM_DEF(tgui)
/datum/controller/subsystem/tgui/PreInit()
basehtml = file2text('tgui/public/tgui.html')
// Inject inline polyfills
var/polyfill = file2text('tgui/public/tgui-polyfill.min.js')
polyfill = "<script>\n[polyfill]\n</script>"
basehtml = replacetextEx(basehtml, "<!-- tgui:inline-polyfill -->", polyfill)
/datum/controller/subsystem/tgui/Shutdown()
close_all_uis()