mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-22 05:26:36 +01:00
99% of Overlays now use SSoverlays (#4847)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request Silicons asked me too and he knows very well I'll do this dumb shit in one sitting.
This commit is contained in:
@@ -71,22 +71,25 @@
|
||||
/obj/item/modular_computer/update_icon()
|
||||
icon_state = icon_state_unpowered
|
||||
|
||||
overlays.Cut()
|
||||
cut_overlays()
|
||||
var/list/overlays_to_add = list()
|
||||
if(bsod)
|
||||
overlays.Add("bsod")
|
||||
add_overlay("bsod")
|
||||
return
|
||||
if(!enabled)
|
||||
if(icon_state_screensaver)
|
||||
overlays.Add(icon_state_screensaver)
|
||||
add_overlay(icon_state_screensaver)
|
||||
set_light(0)
|
||||
return
|
||||
set_light(light_strength)
|
||||
if(active_program)
|
||||
overlays.Add(active_program.program_icon_state ? active_program.program_icon_state : icon_state_menu)
|
||||
overlays_to_add.Add(active_program.program_icon_state ? active_program.program_icon_state : icon_state_menu)
|
||||
if(active_program.program_key_state)
|
||||
overlays.Add(active_program.program_key_state)
|
||||
overlays_to_add.Add(active_program.program_key_state)
|
||||
else
|
||||
overlays.Add(icon_state_menu)
|
||||
overlays_to_add.Add(icon_state_menu)
|
||||
|
||||
add_overlay(overlays_to_add)
|
||||
|
||||
/obj/item/modular_computer/proc/turn_on(mob/user)
|
||||
if(bsod)
|
||||
|
||||
Reference in New Issue
Block a user