mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-05 22:31:04 +01:00
068f5df349
* 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
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
|