mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Verb manager & Speech controller Subsystem (#7901)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user