Close storage UI when item becomes inaccessible (#14536)

* add hide_from_all to storage objects, to call by something once it's locked/close

* lockers call hide_from_all on stored storage items

* secure storage calls hide_from_all on lock

* throwing storage closes it

* adding storage to a disposal chute closes it

* adding storage to a crate closes it

* adding storage to the destructive analyzer closes it
This commit is contained in:
nicetoolbox
2020-12-16 14:47:26 -05:00
committed by GitHub
parent 1683c4271a
commit f54b6904b9
7 changed files with 31 additions and 2 deletions
@@ -81,6 +81,9 @@ Note: Must be placed within 3 tiles of the R&D Console
busy = 1
loaded_item = O
O.loc = src
if(istype(O, /obj/item/storage))
var/obj/item/storage/S = O
S.hide_from_all()
to_chat(user, "<span class='notice'>You add the [O.name] to the [src.name]!</span>")
flick("d_analyzer_la", src)
spawn(10)