/obj/item/sensor_device name = "handheld crew monitor" desc = "A miniature machine that tracks suit sensors across the station." icon = 'icons/obj/device.dmi' icon_state = "scanner" w_class = WEIGHT_CLASS_SMALL slot_flags = ITEM_SLOT_BELT origin_tech = "programming=3;materials=3;magnets=3" materials = list(MAT_METAL = 300, MAT_GLASS = 200) var/datum/ui_module/crew_monitor/crew_monitor new_attack_chain = TRUE /obj/item/sensor_device/Initialize(mapload) . = ..() crew_monitor = new(src) /obj/item/sensor_device/Destroy() QDEL_NULL(crew_monitor) return ..() /obj/item/sensor_device/activate_self(mob/user) if(..()) return ITEM_INTERACT_COMPLETE ui_interact(user) add_fingerprint(user) return ITEM_INTERACT_COMPLETE /obj/item/sensor_device/ui_state(mob/user) return GLOB.default_state /obj/item/sensor_device/ui_interact(mob/user, datum/tgui/ui = null) crew_monitor.ui_interact(user, ui)