Added standby icon to powered modular consoles. Sprites by Hubblenaut

This commit is contained in:
Chinsky
2016-01-07 20:46:10 +03:00
parent 8b765cf96a
commit f885aba1c9
2 changed files with 3 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
icon_state = null
var/icon_state_unpowered = null // Icon state when the computer is turned off
var/screen_icon_state_menu = "menu" // Icon state overlay when the computer is turned on, but no program is loaded that would override the screen.
var/screen_icon_screensaver = "standby" // Icon state overlay when the computer is powered, but not 'switched on'.
var/max_hardware_size = 0 // Maximal hardware size. Currently, tablets have 1, laptops 2 and consoles 3. Limits what hardware types can be installed.
var/steel_sheet_cost = 10 // Amount of steel sheets refunded when disassembling an empty frame of this computer.
@@ -39,6 +40,8 @@
overlays.Cut()
if(!cpu || !cpu.enabled)
if (!(stat & NOPOWER))
overlays.Add(screen_icon_screensaver)
return
if(cpu.active_program)
overlays.Add(cpu.active_program.program_icon_state ? cpu.active_program.program_icon_state : screen_icon_state_menu)