mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Moves static overlay to be a global HUD option
This commit is contained in:
@@ -6,12 +6,14 @@ var/datum/global_hud/global_hud = new()
|
|||||||
var/list/global_huds = list(
|
var/list/global_huds = list(
|
||||||
global_hud.druggy,
|
global_hud.druggy,
|
||||||
global_hud.blurry,
|
global_hud.blurry,
|
||||||
|
global_hud.whitense,
|
||||||
global_hud.vimpaired,
|
global_hud.vimpaired,
|
||||||
global_hud.darkMask,
|
global_hud.darkMask,
|
||||||
global_hud.nvg,
|
global_hud.nvg,
|
||||||
global_hud.thermal,
|
global_hud.thermal,
|
||||||
global_hud.meson,
|
global_hud.meson,
|
||||||
global_hud.science)
|
global_hud.science
|
||||||
|
)
|
||||||
|
|
||||||
/datum/hud/var/obj/screen/grab_intent
|
/datum/hud/var/obj/screen/grab_intent
|
||||||
/datum/hud/var/obj/screen/hurt_intent
|
/datum/hud/var/obj/screen/hurt_intent
|
||||||
@@ -21,6 +23,7 @@ var/list/global_huds = list(
|
|||||||
/datum/global_hud
|
/datum/global_hud
|
||||||
var/obj/screen/druggy
|
var/obj/screen/druggy
|
||||||
var/obj/screen/blurry
|
var/obj/screen/blurry
|
||||||
|
var/obj/screen/whitense
|
||||||
var/list/vimpaired
|
var/list/vimpaired
|
||||||
var/list/darkMask
|
var/list/darkMask
|
||||||
var/obj/screen/nvg
|
var/obj/screen/nvg
|
||||||
@@ -53,6 +56,14 @@ var/list/global_huds = list(
|
|||||||
blurry.layer = 17
|
blurry.layer = 17
|
||||||
blurry.mouse_opacity = 0
|
blurry.mouse_opacity = 0
|
||||||
|
|
||||||
|
//static overlay effect for cameras and the like
|
||||||
|
whitense = new /obj/screen()
|
||||||
|
whitense.screen_loc = ui_entire_screen
|
||||||
|
whitense.icon = 'icons/effects/static.dmi'
|
||||||
|
whitense.icon_state = "1 light"
|
||||||
|
whitense.layer = 17
|
||||||
|
whitense.mouse_opacity = 0
|
||||||
|
|
||||||
nvg = setup_overlay("nvg_hud")
|
nvg = setup_overlay("nvg_hud")
|
||||||
thermal = setup_overlay("thermal_hud")
|
thermal = setup_overlay("thermal_hud")
|
||||||
meson = setup_overlay("meson_hud")
|
meson = setup_overlay("meson_hud")
|
||||||
|
|||||||
@@ -42,12 +42,9 @@
|
|||||||
// Parameters: None
|
// Parameters: None
|
||||||
// Description: Adds a static overlay to the client's screen.
|
// Description: Adds a static overlay to the client's screen.
|
||||||
/mob/living/voice/Login()
|
/mob/living/voice/Login()
|
||||||
var/obj/screen/static_effect = new() //Since what the player sees is essentially a video feed, from a vast distance away, the view isn't going to be perfect.
|
..()
|
||||||
static_effect.screen_loc = ui_entire_screen
|
client.screen |= global_hud.whitense
|
||||||
static_effect.icon = 'icons/effects/static.dmi'
|
client.screen |= global_hud.darkMask
|
||||||
static_effect.icon_state = "1 light"
|
|
||||||
static_effect.mouse_opacity = 0 //So the static doesn't get in the way of clicking.
|
|
||||||
client.screen.Add(static_effect)
|
|
||||||
|
|
||||||
// Proc: Destroy()
|
// Proc: Destroy()
|
||||||
// Parameters: None
|
// Parameters: None
|
||||||
|
|||||||
Reference in New Issue
Block a user