Verb manager & Speech controller Subsystem (#7901)

This commit is contained in:
Selis
2024-03-29 13:34:42 +01:00
committed by GitHub
parent 62760d725d
commit 978b0c3d47
11 changed files with 297 additions and 3 deletions

View File

@@ -351,8 +351,7 @@
log_tgui(user, "Action: [act_type] [href_list["payload"]], Window: [window.id], Source: [src_object]")
#endif
process_status()
if(src_object.tgui_act(act_type, payload, src, state))
SStgui.update_uis(src_object)
DEFAULT_QUEUE_OR_CALL_VERB(VERB_CALLBACK(src, PROC_REF(on_act_message), act_type, payload, state))
return FALSE
switch(type)
if("ready")
@@ -380,3 +379,10 @@
log_tgui(user, "Fallback Triggered: [href_list["payload"]], Window: [window.id], Source: [src_object]")
#endif
src_object.tgui_fallback(payload)
/// Wrapper for behavior to potentially wait until the next tick if the server is overloaded
/datum/tgui/proc/on_act_message(act_type, payload, state)
if(QDELETED(src) || QDELETED(src_object))
return
if(src_object.tgui_act(act_type, payload, src, state))
SStgui.update_uis(src_object)