fixes floor decals and other missing signal-added overlays by making sure things properly call parent update_icon

This commit is contained in:
deathride58
2024-04-24 22:30:25 -04:00
parent e094437056
commit 0517ece12a
36 changed files with 35 additions and 10 deletions
+1 -1
View File
@@ -47,7 +47,7 @@
/obj/machinery/button/update_icon()
cut_overlays()
. = ..()
if(panel_open)
icon_state = "button-open"
else if(stat & (NOPOWER|BROKEN))
+1 -1
View File
@@ -151,6 +151,7 @@
// if BROKEN, display blue screen of death icon AI uses
// if timing=true, run update display function
/obj/machinery/door_timer/update_icon()
. = ..()
if(stat & (NOPOWER))
icon_state = "frame"
return
@@ -169,7 +170,6 @@
else
if(maptext)
maptext = ""
return
// Adds an icon in case the screen is broken/off, stolen from status_display.dm
+1
View File
@@ -404,6 +404,7 @@
throw_at(thrown_by, throw_range+2, throw_speed, null, TRUE)
/obj/item/melee/baton/boomerang/update_icon()
. = ..()
if(turned_on)
icon_state = "[initial(icon_state)]_active"
else if(!cell)
+1 -1
View File
@@ -365,6 +365,7 @@
var/list/viewing_ui = list()
/obj/structure/displaycase/forsale/update_icon() //remind me to fix my shitcode later
. = ..()
var/icon/I
if(open)
I = icon('icons/obj/stationobjs.dmi',"laserboxb0")
@@ -379,7 +380,6 @@
S.Scale(17,17)
I.Blend(S,ICON_UNDERLAY,8,12)
src.icon = I
return
/obj/structure/displaycase/forsale/ui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
+1
View File
@@ -221,6 +221,7 @@ GLOBAL_LIST_EMPTY(crematoriums)
id = "[idnum][id]"
/obj/structure/bodycontainer/crematorium/update_icon()
. = ..()
if(!connected || connected.loc != src)
icon_state = "crema0"
else
-2
View File
@@ -162,8 +162,6 @@
/turf/open/floor/blob_act(obj/structure/blob/B)
return
/turf/open/floor/update_icon()
/turf/open/floor/attack_paw(mob/user)
return attack_hand(user)
@@ -28,6 +28,7 @@
return ..()
/turf/open/floor/circuit/update_icon()
. = ..()
if(on)
if(LAZYLEN(SSmapping.nuke_threats))
icon_state = "rcircuitanim"