mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-13 18:33:22 +00:00
13 lines
394 B
Plaintext
13 lines
394 B
Plaintext
/**
|
|
* tgui state: deep_inventory_state
|
|
*
|
|
* Checks that the src_object is in the user's deep (backpack, box, toolbox, etc) inventory.
|
|
**/
|
|
|
|
/var/global/datum/ui_state/deep_inventory_state/deep_inventory_state = new()
|
|
|
|
/datum/ui_state/deep_inventory_state/can_use_topic(src_object, mob/user)
|
|
if(!user.contains(src_object))
|
|
return UI_CLOSE
|
|
return user.shared_ui_interaction(src_object)
|