refactors statpanel to use tgui API (#66971)

refactors the status panel to utilize the tgui/byond communication APIs instead of passing along href data, as well as converts the entirety of it into a datum/tgui_window

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
This commit is contained in:
magatsuchi
2022-05-16 07:12:05 +03:00
committed by GitHub
co-authored by Aleksej Komarov
parent b245c72994
commit bea9387458
20 changed files with 1421 additions and 1421 deletions
@@ -427,14 +427,12 @@
// First we detain them by removing all the verbs they have on client
for (var/v in client.verbs)
var/procpath/verb_path = v
if (!(verb_path in GLOB.stat_panel_verbs))
remove_verb(client, verb_path)
remove_verb(client, verb_path)
// Then remove those on their mob as well
for (var/v in verbs)
var/procpath/verb_path = v
if (!(verb_path in GLOB.stat_panel_verbs))
remove_verb(src, verb_path)
remove_verb(src, verb_path)
// Then we create the interview form and show it to the client
var/datum/interview/I = GLOB.interviews.interview_for_client(client)
+1 -1
View File
@@ -897,7 +897,7 @@
LAZYREMOVE(mob_spell_list, S)
qdel(S)
if(client)
client << output(null, "statbrowser:check_spells")
client.stat_panel.send_message("check_spells")
/**
* Checks to see if the mob can cast normal magic spells.