mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 12:05:59 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user