mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 07:46:20 +00:00
## About The Pull Request Moved broken on 516 UI's to browser datum They now work and have a dark theme Most of them are admin ones (All except 1) I tried to check all the raw HTML UI's by typing `<< browse(` into the VSC search and going through each element, but I might have missed something. What worked as it was, I didn't touch, except for the Dynamic control UI's ## Why It's Good For The Game Admin can do their things on 516 Coders/Mappers can debug some stuff on 516  ## Changelog 🆑 fix: Admin/Debug UI's (Especially the Game Panel) now work properly on Byond 516, instead of showing raw HTML /🆑
21 lines
795 B
Plaintext
21 lines
795 B
Plaintext
//these are real globals so you can use profiling to profile early world init stuff.
|
|
GLOBAL_REAL(PROFILE_STORE, /list)
|
|
GLOBAL_REAL_VAR(PROFILE_LINE)
|
|
GLOBAL_REAL_VAR(PROFILE_FILE)
|
|
GLOBAL_REAL_VAR(PROFILE_SLEEPCHECK)
|
|
GLOBAL_REAL_VAR(PROFILE_TIME)
|
|
|
|
|
|
/proc/profile_show(user, sort = GLOBAL_PROC_REF(cmp_profile_avg_time_dsc))
|
|
sortTim(PROFILE_STORE, sort, TRUE)
|
|
|
|
var/list/lines = list()
|
|
|
|
for (var/entry in PROFILE_STORE)
|
|
var/list/data = PROFILE_STORE[entry]
|
|
lines += "[entry] => [num2text(data[PROFILE_ITEM_TIME], 10)]ms ([data[PROFILE_ITEM_COUNT]]) (avg:[num2text(data[PROFILE_ITEM_TIME]/(data[PROFILE_ITEM_COUNT] || 1), 99)])"
|
|
|
|
var/datum/browser/browser = new(user, "[url_encode(GUID())]", null, 500, 500)
|
|
browser.set_content("<ol><li>[lines.Join("</li><li>")]</li></ol>")
|
|
browser.open()
|