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

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
ArcaneMusic
2022-07-22 20:50:37 -07:00
committed by GitHub
co-authored by Mothblocks
parent 9da78f0392
commit cad307513f
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)