Added priority overlay system. (#18225)

Added priority overlays to atoms, which will not be removed when overlays are cut and will always remain on top when new overlays are added. This requires everyone to use add_overlay() and cut_overlays() instead of overlays += and overlays.Cut(). These procs are found in __HELPERS/icons.dm, and the priority overlay list is found in game/atoms.dm. Everything else is replacing deprecated overlay manipulation.
This commit is contained in:
Cruix
2016-06-16 18:11:53 -04:00
committed by oranges
parent 5668a89da4
commit ac0bad5d61
194 changed files with 629 additions and 603 deletions

View File

@@ -76,19 +76,19 @@
src.updateicon()
/obj/item/robot_parts/robot_suit/proc/updateicon()
src.overlays.Cut()
src.cut_overlays()
if(src.l_arm)
src.overlays += "l_arm+o"
src.add_overlay("l_arm+o")
if(src.r_arm)
src.overlays += "r_arm+o"
src.add_overlay("r_arm+o")
if(src.chest)
src.overlays += "chest+o"
src.add_overlay("chest+o")
if(src.l_leg)
src.overlays += "l_leg+o"
src.add_overlay("l_leg+o")
if(src.r_leg)
src.overlays += "r_leg+o"
src.add_overlay("r_leg+o")
if(src.head)
src.overlays += "head+o"
src.add_overlay("head+o")
/obj/item/robot_parts/robot_suit/proc/check_completion()
if(src.l_arm && src.r_arm)