mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
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:
co-authored by
Aleksej Komarov
parent
b245c72994
commit
bea9387458
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user