Skip to content

Commit

Permalink
[MIRROR] Adds notification when toggling hud implant (#2202)
Browse files Browse the repository at this point in the history
* 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: NovaBot <[email protected]>
Co-authored-by: Nick <[email protected]>
  • Loading branch information
3 people authored Mar 1, 2024
1 parent 37b7e66 commit d1eab0a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
. = ..()
Expand Down

0 comments on commit d1eab0a

Please sign in to comment.