mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-18 19:39:42 +01:00
Update SSOverlays (ported from Baystation) (#19051)
Our SSOverlays system is outdated, and is likely the cause of many of the issues seen in #18895. It has also been linked to a massive server performance decrease. This brings an updated system from Baystation, hopefully with speed increases. Should be testmerged, ideally with #18895. --------- Co-authored-by: Cody Brittain <cbrittain10@live.com>
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/r_n_d/tech_processor/update_icon()
|
||||
cut_overlays()
|
||||
ClearOverlays()
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
icon_state = "[initial(icon_state)]_off"
|
||||
else if(!linked_server)
|
||||
@@ -82,4 +82,4 @@
|
||||
else
|
||||
icon_state = initial(icon_state)
|
||||
if(panel_open)
|
||||
add_overlay("[initial(icon_state)]_open")
|
||||
AddOverlays("[initial(icon_state)]_open")
|
||||
|
||||
Reference in New Issue
Block a user