Adds jani HUDs from Baystation! (#22654)

* Adds jani HUDs from Baystation!

* wrong place

* tweak to sprite

* contra review and tmeporary tweaks to the sprite

* finishing the sprites

* tweak to icon alpha and nv sprite

* typo

* conflict part 2

* test

* final adjustments

* DgamerL review

* fixing sprites

* changing name

* name part 2

* DGamerL review part 2

* wrong value

* nope

* equipment and janitorial categories

* Apply suggestions from code review
This commit is contained in:
Henri215
2023-12-11 16:52:54 +00:00
committed by GitHub
parent 08b071ba41
commit 94cefac7cb
18 changed files with 137 additions and 17 deletions
@@ -40,6 +40,7 @@
var/med_hud = DATA_HUD_MEDICAL_ADVANCED //Determines the med hud to use
var/sec_hud = DATA_HUD_SECURITY_ADVANCED //Determines the sec hud to use
var/d_hud = DATA_HUD_DIAGNOSTIC_BASIC //There is only one kind of diag hud
var/jani_hud = DATA_HUD_JANITOR
/mob/living/silicon/New()
GLOB.silicon_mob_list |= src
@@ -350,9 +351,11 @@
var/datum/atom_hud/secsensor = GLOB.huds[sec_hud]
var/datum/atom_hud/medsensor = GLOB.huds[med_hud]
var/datum/atom_hud/diagsensor = GLOB.huds[d_hud]
var/datum/atom_hud/janisensor = GLOB.huds[jani_hud]
secsensor.remove_hud_from(src)
medsensor.remove_hud_from(src)
diagsensor.remove_hud_from(src)
janisensor.remove_hud_from(src)
/mob/living/silicon/proc/add_sec_hud()
@@ -367,12 +370,16 @@
var/datum/atom_hud/diagsensor = GLOB.huds[d_hud]
diagsensor.add_hud_to(src)
/mob/living/silicon/proc/add_jani_hud()
var/datum/atom_hud/janisensor = GLOB.huds[jani_hud]
janisensor.add_hud_to(src)
/mob/living/silicon/proc/toggle_sensor_mode()
to_chat(src, "<span class='notice'>Please select sensor type.</span>")
var/static/list/sensor_choices = list("Security" = image(icon = 'icons/obj/clothing/glasses.dmi', icon_state = "securityhud"),
"Medical" = image(icon = 'icons/obj/clothing/glasses.dmi', icon_state = "healthhud"),
"Diagnostic" = image(icon = 'icons/obj/clothing/glasses.dmi', icon_state = "diagnostichud"),
"Janitor" = image(icon = 'icons/obj/clothing/glasses.dmi', icon_state = "janihud"),
"None" = image(icon = 'icons/mob/screen_gen.dmi', icon_state = "x"))
var/sensor_type = show_radial_menu(src, src, sensor_choices)
if(!sensor_type)
@@ -388,6 +395,9 @@
if("Diagnostic")
add_diag_hud()
to_chat(src, "<span class='notice'>Robotics diagnostic overlay enabled.</span>")
if("Janitor")
add_jani_hud()
to_chat(src, "<span class='notice'>Janitorial filth overlay enabled.</span>")
if("None")
to_chat(src, "Sensor augmentations disabled.")