/datum/computer_file/program/crew_manifest filename = "plexagoncrew" filedesc = "Plexagon Crew List" category = PROGRAM_CATEGORY_CREW program_icon_state = "id" extended_desc = "Program for viewing and printing the current crew manifest" transfer_access = ACCESS_HEADS requires_ntnet = TRUE size = 4 tgui_id = "NtosCrewManifest" program_icon = "clipboard-list" /datum/computer_file/program/crew_manifest/ui_static_data(mob/user) var/list/data = list() data["manifest"] = GLOB.data_core.get_manifest_tg() return data /datum/computer_file/program/crew_manifest/ui_data(mob/user) var/list/data = get_header_data() var/obj/item/computer_hardware/printer/printer if(computer) printer = computer.all_components[MC_PRINT] if(computer) data["have_printer"] = !!printer else data["have_printer"] = FALSE return data /datum/computer_file/program/crew_manifest/ui_act(action, params, datum/tgui/ui) . = ..() if(.) return var/obj/item/computer_hardware/printer/printer if(computer) printer = computer.all_components[MC_PRINT] switch(action) if("PRG_print") if(computer && printer) //This option should never be called if there is no printer var/contents = {"