mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
Ports scanline HUDs from nebula. (#8675)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user