mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 14:26:58 +01:00
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>
16 lines
590 B
Plaintext
16 lines
590 B
Plaintext
|
|
/client/proc/fucky_wucky()
|
|
set category = "Debug"
|
|
set name = "Fucky Wucky"
|
|
set desc = "Inform the players that the code monkeys at our headquarters are working very hard to fix this."
|
|
|
|
log_and_message_admins("[key_name(src)] made a fucky wucky.")
|
|
|
|
var/datum/asset_pack/assets = SSassets.ready_asset_pack(/datum/asset_pack/simple/fuckywucky)
|
|
var/img_src = assets.get_url("fuckywucky.png")
|
|
SSassets.send_asset_pack(GLOB.player_list, assets)
|
|
|
|
for(var/victim as anything in GLOB.player_list)
|
|
SEND_SOUND(victim, 'sound/misc/fuckywucky.ogg')
|
|
to_chat(victim, "<img src='[img_src]'>")
|