Fixed background inventory screens not being clickable (#19284)

Fixed background inventory screens not being clickable.
Clicking on a storage item that is already open now closes it.

Fixes #18880
This commit is contained in:
Fluffy
2024-05-31 21:18:56 +00:00
committed by GitHub
parent cca5b43987
commit 1e2fc585e7
4 changed files with 68 additions and 2 deletions
+3 -1
View File
@@ -139,6 +139,8 @@
/obj/screen/storage
name = "storage"
screen_loc = "7,7 to 10,8"
plane = HUD_PLANE
layer = HUD_BASE_LAYER
/obj/screen/storage/Click()
if(!usr.canClick())
@@ -153,7 +155,7 @@
/obj/screen/storage/background
name = "background storage"
layer = HUD_BASE_LAYER
layer = HUD_BELOW_ITEM_LAYER
/obj/screen/storage/background/Initialize(mapload, var/obj/set_master, var/set_icon_state)
. = ..()