[MIRROR] Adds screentips to rolling beds and body bags. [MDB IGNORE] (#15140)

* Adds screentips to rolling beds and body bags. (#68331)

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* Adds screentips to rolling beds and body bags.

Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-07-23 13:40:11 +02:00
committed by GitHub
parent c1ff7ee20e
commit 9934316ea5
5 changed files with 85 additions and 0 deletions
@@ -57,8 +57,15 @@
icon_state = "down"
anchored = FALSE
resistance_flags = NONE
///The item it spawns when it's folded up.
var/foldabletype = /obj/item/roller
/obj/structure/bed/roller/Initialize(mapload)
. = ..()
AddElement( \
/datum/element/contextual_screentip_bare_hands, \
rmb_text = "Fold up", \
)
/obj/structure/bed/roller/examine(mob/user)
. = ..()
@@ -22,6 +22,20 @@
var/tagged = FALSE // so closet code knows to put the tag overlay back
can_install_electronics = FALSE
/obj/structure/closet/body_bag/Initialize(mapload)
. = ..()
var/static/list/tool_behaviors = list(
TOOL_WIRECUTTER = list(
SCREENTIP_CONTEXT_RMB = "Remove Tag",
),
)
AddElement(/datum/element/contextual_screentip_tools, tool_behaviors)
AddElement( \
/datum/element/contextual_screentip_bare_hands, \
rmb_text = "Fold up", \
)
AddElement(/datum/element/contextual_screentip_sharpness, lmb_text = "Remove Tag")
/obj/structure/closet/body_bag/Destroy()
// If we have a stored bag, and it's in nullspace (not in someone's hand), delete it.
if (foldedbag_instance && !foldedbag_instance.loc)