mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-15 18:06:48 +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:
@@ -36,17 +36,17 @@
|
||||
|
||||
/obj/machinery/ntnet_relay/update_icon()
|
||||
icon_state = initial(icon_state)
|
||||
cut_overlays()
|
||||
ClearOverlays()
|
||||
if(panel_open)
|
||||
icon_state += "_o"
|
||||
if(!operable())
|
||||
icon_state += "_off"
|
||||
else if(dos_failure)
|
||||
add_overlay("ntnet_o_problem")
|
||||
AddOverlays("ntnet_o_problem")
|
||||
else if(!enabled)
|
||||
add_overlay("ntnet_o_error")
|
||||
AddOverlays("ntnet_o_error")
|
||||
else
|
||||
add_overlay("ntnet_o_ok")
|
||||
AddOverlays("ntnet_o_ok")
|
||||
|
||||
/obj/machinery/ntnet_relay/process()
|
||||
if(operable())
|
||||
|
||||
Reference in New Issue
Block a user