From 03a625a2b62002d97ff5bbb57d787696cc8cdc3e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:25:21 +0100 Subject: [PATCH] [MIRROR] Adds notification when toggling hud implant (#26698) * Adds notification when toggling hud implant (#81740) ## About The Pull Request Does what it says on the tin. When you toggle a hud implant on/off, you'll get a balloon notification telling you if it was enabled/disabled. Fixes #81654 ## Why It's Good For The Game Good for implants where it might not be immediately obvious whether they're on or off, like the diagnostic HUD. ## Changelog :cl: qol: HUD implants will now notify you when toggled on or off /:cl: * Adds notification when toggling hud implant --------- Co-authored-by: Nick <42454181+Momo8289@users.noreply.github.com> --- .../modules/surgery/organs/internal/cyberimp/augments_eyes.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/surgery/organs/internal/cyberimp/augments_eyes.dm b/code/modules/surgery/organs/internal/cyberimp/augments_eyes.dm index cec0241ece3..cd9de70c4e2 100644 --- a/code/modules/surgery/organs/internal/cyberimp/augments_eyes.dm +++ b/code/modules/surgery/organs/internal/cyberimp/augments_eyes.dm @@ -16,7 +16,7 @@ var/HUD_type = 0 var/HUD_trait = null /// Whether the HUD implant is on or off - var/toggled_on = TRUE + var/toggled_on = TRUE /obj/item/organ/internal/cyberimp/eyes/hud/proc/toggle_hud(mob/living/carbon/eye_owner) @@ -25,11 +25,13 @@ var/datum/atom_hud/hud = GLOB.huds[HUD_type] hud.hide_from(eye_owner) toggled_on = FALSE + balloon_alert(eye_owner, "hud disabled") else if(HUD_type) var/datum/atom_hud/hud = GLOB.huds[HUD_type] hud.show_to(eye_owner) toggled_on = TRUE + balloon_alert(eye_owner, "hud enabled") /obj/item/organ/internal/cyberimp/eyes/hud/Insert(mob/living/carbon/eye_owner, special = FALSE, movement_flags) . = ..()