Icon caching & human icon tweaks (#3000)

changes:

Body marking icons are now cached in SSicon_cache.
Renamed the body-hair cache (used only by Resomi) to make it more clear what it is.
Humans now use SSoverlay for applying overlays, though they force-compile instead of waiting for it to tick.
Fixed a bug where getFlatIcon() did not work properly with SSoverlay overlays.
This commit is contained in:
Lohikar
2017-07-10 20:09:52 +03:00
committed by skull132
parent 97d2a54ee4
commit 606a9c7541
4 changed files with 37 additions and 29 deletions
+4 -1
View File
@@ -28,7 +28,10 @@
var/list/human_icon_cache = list()
var/list/tail_icon_cache = list() //key is [species.race_key][r_skin][g_skin][b_skin]
var/list/light_overlay_cache = list()
var/list/limb_icon_cache = list()
var/list/body_hair_cache = list()
var/list/damage_icon_parts = list()
// [icon]-[icon_state]-[limb_name]-[color]
var/list/markings_cache = list()
/datum/controller/subsystem/icon_cache/New()
NEW_SS_GLOBAL(SSicon_cache)