Ports scanline HUDs from nebula. (#8675)

This commit is contained in:
Matt Atlas
2020-04-19 14:28:11 +02:00
committed by GitHub
parent 3a73323180
commit 7ef1c10f7a
3 changed files with 47 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ var/list/global_huds
var/obj/screen/science
var/obj/screen/holomap
/datum/global_hud/proc/setup_overlay(var/icon_state)
/datum/global_hud/proc/setup_overlay(var/icon_state, var/color)
var/obj/screen/screen = new /obj/screen()
screen.alpha = 25 // Adjust this if you want goggle overlays to be thinner or thicker.
screen.screen_loc = "SOUTHWEST to NORTHEAST" // Will tile up to the whole screen, scaling beyond 15x15 if needed.
@@ -29,6 +29,7 @@ var/list/global_huds
screen.icon_state = icon_state
screen.layer = SCREEN_LAYER
screen.mouse_opacity = 0
screen.color = color
return screen
@@ -47,10 +48,10 @@ var/list/global_huds
blurry.layer = 17
blurry.mouse_opacity = 0
nvg = setup_overlay("nvg_hud")
thermal = setup_overlay("thermal_hud")
meson = setup_overlay("meson_hud")
science = setup_overlay("science_hud")
nvg = setup_overlay("scanline", "#06ff00")
thermal = setup_overlay("scanline", "#ff0000")
meson = setup_overlay("scanline", "#9fd800")
science = setup_overlay("scanline", "#d600d6")
// The holomap screen object is actually totally invisible.
// Station maps work by setting it as an images location before sending to client, not