KILLS STATPANEL (#4877)

Co-authored-by: VM_USER <VM_USER>
Co-authored-by: silicons <no@you.cat>
This commit is contained in:
silicons
2023-01-11 09:12:35 -06:00
committed by GitHub
co-authored by VM_USER <VM_USER> silicons
parent 55da42c20a
commit fb429e51a4
245 changed files with 2957 additions and 1926 deletions
+20 -2
View File
@@ -85,9 +85,16 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
log_href("[src] (usr:[usr]\[[COORD(usr)]\]) : [hsrc ? "[hsrc] " : ""][href]")
return
//Logs all hrefs
//? Normal HREF handling go below
// Log
log_href("[src] (usr:[usr]\[[COORD(usr)]\]) : [hsrc ? "[hsrc] " : ""][href]")
// Route statpanel
if(href_list["statpanel"])
_statpanel_act(href_list["statpanel"], href_list)
return
//byond bug ID:2256651
if (asset_cache_job && (asset_cache_job in completed_asset_jobs))
to_chat(src, "<span class='danger'>An error has been detected in how your client is receiving resources. Attempting to correct.... (If you keep seeing these messages you might want to close byond and reconnect)</span>")
@@ -126,6 +133,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
return prefs.process_link(usr,href_list)
if("vars")
return view_var_Topic(href,href_list,hsrc)
if("stat")
return _statpanel_act(href_list["act"], href_list)
switch(href_list["action"])
if("openLink")
@@ -178,6 +187,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
//! Setup user interface
// todo: move top level menu here, for now it has to be under prefs.
// Instantiate statpanel
statpanel_boot()
// Instantiate tgui panel
tgui_panel = new(src, "browseroutput")
@@ -196,7 +207,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
debug_tools_allowed = TRUE
/*
else if(GLOB.deadmins[ckey])
verbs += /client/proc/readmin
add_verb(src, /client/proc/readmin)
connecting_admin = TRUE
if(CONFIG_GET(flag/autoadmin))
if(!GLOB.admin_datums[ckey])
@@ -324,6 +335,9 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
// inline_css = file2text('html/statbrowser.css'),
// )
//! Initialize UI
// initialize statbrowser
// (we don't, the JS does it for us. by signalling statpanel_ready().)
// Initialize tgui panel
tgui_panel.initialize()
@@ -450,6 +464,10 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
active_mousedown_item = null
SSping.currentrun -= src
//! cleanup UI
/// cleanup statbrowser
statpanel_dispose()
. = ..() //Even though we're going to be hard deleted there are still some things that want to know the destroy is happening
return QDEL_HINT_HARDDEL_NOW