mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 02:24:11 +01:00
07c88ffb0a
* Add new surgery tgui (#64579) * Move element to component, start UI, move assets into their own directory * Complete UI * Stop when another surgery is started * Set your real zone since I forgot you actually need to start the surgery too * Bring this back since I was just removing it as part of a cleanup for asset cache, but I can't prove it's not used anymore * Remove unnecessary constructor I was using for something else * Fix signal override * Add new surgery tgui that provides a built in body zone selector and doesn't let you start surgeries if their body is covered. Replaces some stuff with balloon alerts Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
13 lines
444 B
Plaintext
13 lines
444 B
Plaintext
/datum/asset/simple/portraits
|
|
assets = list()
|
|
|
|
/datum/asset/simple/portraits/New()
|
|
if(!length(SSpersistent_paintings.paintings))
|
|
return
|
|
for(var/datum/painting/portrait as anything in SSpersistent_paintings.paintings)
|
|
var/png = "data/paintings/images/[portrait.md5].png"
|
|
if(fexists(png))
|
|
var/asset_name = "paintings_[portrait.md5]"
|
|
assets[asset_name] = png
|
|
..() //this is where it registers all these assets we added to the list
|