Make various machinery properly update their icons on init (#21177)

* All of those Inits, and you choose to not update

* Update requests_console.dm
This commit is contained in:
Vi3trice
2023-06-02 14:52:40 -04:00
committed by GitHub
parent 99a2d9050b
commit 77f37760e7
6 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -559,7 +559,7 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays)
overlays += damag_overlay
overlays += note_overlay
check_unres()
overlays += check_unres()
//EMISSIVE ICONS
if(buttons_underlay != old_buttons_underlay)
+6 -4
View File
@@ -60,6 +60,7 @@
real_explosion_block = explosion_block
explosion_block = EXPLOSION_BLOCK_PROC
update_icon()
air_update_turf(1)
/obj/machinery/door/proc/set_init_door_layer()
@@ -464,23 +465,24 @@
/obj/machinery/door/proc/check_unres() //unrestricted sides. This overlay indicates which directions the player can access even without an ID
if(hasPower() && unres_sides)
. = list()
set_light(l_range = 1, l_power = 1, l_color = "#00FF00")
if(unres_sides & NORTH)
var/image/I = image(icon='icons/obj/doors/airlocks/station/overlays.dmi', icon_state="unres_n") //layer=src.layer+1
I.pixel_y = 32
add_overlay(I)
. += I
if(unres_sides & SOUTH)
var/image/I = image(icon='icons/obj/doors/airlocks/station/overlays.dmi', icon_state="unres_s") //layer=src.layer+1
I.pixel_y = -32
add_overlay(I)
. += I
if(unres_sides & EAST)
var/image/I = image(icon='icons/obj/doors/airlocks/station/overlays.dmi', icon_state="unres_e") //layer=src.layer+1
I.pixel_x = 32
add_overlay(I)
. += I
if(unres_sides & WEST)
var/image/I = image(icon='icons/obj/doors/airlocks/station/overlays.dmi', icon_state="unres_w") //layer=src.layer+1
I.pixel_x = -32
add_overlay(I)
. += I
/obj/machinery/door/morgue
icon = 'icons/obj/doors/doormorgue.dmi'
+1
View File
@@ -118,6 +118,7 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
if(departmentType & RC_INFO)
GLOB.req_console_information |= department
update_icon()
// NOT BOOLEAN. DO NOT CONVERT.
set_light(1)
+1
View File
@@ -36,6 +36,7 @@ GLOBAL_LIST_EMPTY(status_displays)
/obj/machinery/status_display/Initialize()
. = ..()
GLOB.status_displays |= src
update_icon(UPDATE_OVERLAYS)
/obj/machinery/status_display/Destroy()
GLOB.status_displays -= src
+1
View File
@@ -191,6 +191,7 @@
for(var/typepath in subtypesof(/datum/vendor_crit))
all_possible_crits[typepath] = new typepath()
update_icon(UPDATE_OVERLAYS)
reconnect_database()
power_change()
+1
View File
@@ -122,6 +122,7 @@
/obj/effect/mapping_helpers/airlock/unres/payload(obj/machinery/door/airlock)
airlock.unres_sides ^= dir
airlock.update_icon()
/obj/effect/mapping_helpers/airlock/autoname
name = "airlock autoname helper"