Makes the decal component handle updating inventory icons

This commit is contained in:
Emmett Gaines
2018-01-02 16:17:39 -05:00
committed by CitadelStationBot
parent 943388d8f4
commit f581b2d94d
4 changed files with 39 additions and 5 deletions
+4
View File
@@ -41,10 +41,14 @@
/datum/component/decal/proc/apply(atom/thing)
var/atom/master = thing || parent
master.add_overlay(pic, TRUE)
if(isitem(master))
addtimer(CALLBACK(master, /obj/item/.proc/update_slot_icon), 0, TIMER_UNIQUE)
/datum/component/decal/proc/remove(atom/thing)
var/atom/master = thing || parent
master.cut_overlay(pic, TRUE)
if(isitem(master))
addtimer(CALLBACK(master, /obj/item/.proc/update_slot_icon), 0, TIMER_UNIQUE)
/datum/component/decal/proc/rotate_react(old_dir, new_dir)
if(old_dir == new_dir)