mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-26 18:06:41 +01:00
refactors asset subsystem (#6459)
refactors the asset subsystem to make it much more managed adds support for 'deferred' assets for tgui, which will be later used for things like tgui character setup and admin panels. deferred means that it'll be 'sent in a timely manner after the ui opens', as opposed to 'sent before the ui opens' --------- Co-authored-by: silicons <no@you.cat>
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
// Operates TGUI
|
||||
/obj/item/modular_computer/ui_assets(mob/user)
|
||||
return list(
|
||||
get_asset_datum(/datum/asset/simple/headers)
|
||||
)
|
||||
/obj/item/modular_computer/ui_asset_injection(datum/tgui/ui, list/immediate, list/deferred)
|
||||
immediate += /datum/asset_pack/simple/headers
|
||||
return ..()
|
||||
|
||||
/obj/item/modular_computer/ui_interact(mob/user, datum/tgui/ui)
|
||||
if(!screen_on || !enabled)
|
||||
|
||||
Reference in New Issue
Block a user