More vr sleeper work and map fix

This commit is contained in:
Artur
2020-06-09 11:06:16 +03:00
parent 19949b842b
commit 094a1b6f62
6 changed files with 32 additions and 14 deletions
@@ -0,0 +1,13 @@
/**
* tgui state: default_contained
*
* Basically default and contained combined, allowing for both
*/
GLOBAL_DATUM_INIT(default_contained_state, /datum/ui_state/default/contained, new)
/datum/ui_state/default/contained/can_use_topic(atom/src_object, mob/user)
if(src_object.contains(user))
return UI_INTERACTIVE
return ..()