tgui embedding hooks (#6212)

Co-authored-by: silicons <no@you.cat>
This commit is contained in:
silicons
2023-12-26 22:49:06 +01:00
committed by GitHub
co-authored by silicons
parent 70313ff3e2
commit 20f4c5c7ff
221 changed files with 1115 additions and 999 deletions
@@ -167,9 +167,13 @@
ui = SStgui.try_update_ui(user, src, ui)
if(!ui && tgui_id)
ui = new(user, src, tgui_id, filedesc)
ui_pre_open(ui)
ui.open()
return 1
/datum/computer_file/program/proc/ui_pre_open(datum/tgui/ui)
return
// CONVENTIONS, READ THIS WHEN CREATING NEW PROGRAM AND OVERRIDING THIS PROC:
// Topic calls are automagically forwarded from NanoModule this program contains.
// Calls beginning with "PRG_" are reserved for programs handling.
@@ -186,7 +190,7 @@
// Calls beginning with "PRG_" are reserved for programs handling.
// Calls beginning with "PC_" are reserved for computer handling (by whatever runs the program)
// ALWAYS INCLUDE PARENT CALL ..() OR DIE IN FIRE.
/datum/computer_file/program/ui_act(action,list/params, datum/tgui/ui)
/datum/computer_file/program/ui_act(action, list/params, datum/tgui/ui)
if(..())
return 1
if(computer)