The Computer-ening (#13831)

This commit is contained in:
Wowzewow (Wezzy)
2022-06-05 05:19:33 +08:00
committed by GitHub
parent bf68049d59
commit c70f3e26cf
90 changed files with 350 additions and 202 deletions

View File

@@ -140,6 +140,8 @@
holographic_overlay(src, src.icon, icon_state_screensaver)
else
add_overlay(icon_state_screensaver)
if(icon_state_screensaver_key && working)
add_overlay(icon_state_screensaver_key)
if (screensaver_light_range && working && !flashlight)
set_light(screensaver_light_range, light_power, screensaver_light_color ? screensaver_light_color : "#FFFFFF")
@@ -148,10 +150,12 @@
return
if(active_program)
var/state = active_program.program_icon_state ? active_program.program_icon_state : icon_state_menu
var/state_key = active_program.program_key_icon_state ? active_program.program_key_icon_state : icon_state_menu_key // for corresponding keyboards.
if (is_holographic)
holographic_overlay(src, src.icon, state)
else
add_overlay(state)
add_overlay(state_key)
if(!flashlight)
set_light(light_range, light_power, l_color = active_program.color)
else
@@ -159,6 +163,7 @@
holographic_overlay(src, src.icon, icon_state_menu)
else
add_overlay(icon_state_menu)
add_overlay(icon_state_menu_key)
if(!flashlight)
set_light(light_range, light_power, l_color = menu_light_color)
@@ -392,7 +397,7 @@
enabled_services += S
S.service_state = PROGRAM_STATE_ACTIVE
return TRUE
/obj/item/modular_computer/proc/disable_service(service, mob/user, var/datum/computer_file/program/S = null)

View File

@@ -40,7 +40,9 @@
center_of_mass = null
var/icon_state_unpowered // Icon state when the computer is turned off
var/icon_state_menu = "menu" // Icon state overlay when the computer is turned on, but no program is loaded that would override the screen.
var/icon_state_menu_key = "black_key"
var/icon_state_screensaver
var/icon_state_screensaver_key
var/icon_state_broken
var/screensaver_light_range = 0
var/screensaver_light_color

View File

@@ -2,12 +2,13 @@
name = "console"
desc = "A stationary computer."
icon = 'icons/obj/modular_console.dmi'
icon_state = "console"
icon_state_unpowered = "console"
icon_state_screensaver = "standby-light"
icon_state_menu = "menu-light"
icon_state = "computer"
icon_state_unpowered = "computer"
icon_state_screensaver = "standby"
icon_state_screensaver_key = "black_key"
icon_state_menu = "menu"
icon_state_broken = "console-broken"
menu_light_color = LIGHT_COLOR_BLUE
menu_light_color = LIGHT_COLOR_WHITE
hardware_flag = PROGRAM_CONSOLE
anchored = TRUE
density = TRUE
@@ -18,5 +19,5 @@
steel_sheet_cost = 20
light_range = 2
screensaver_light_range = 1.4
screensaver_light_color = "#0099ff"
is_holographic = TRUE
screensaver_light_color = LIGHT_COLOR_WHITE
is_holographic = TRUE