From 6644baec766a79edb9eb4fdd0c2e396ec5cb602c Mon Sep 17 00:00:00 2001 From: forest2001 Date: Sat, 25 May 2024 14:14:14 +0100 Subject: [PATCH] formatting --- code/game/machinery/ARES/ARES_interface.dm | 28 +++++++++++++++++-- .../tgui/interfaces/AresInterface.jsx | 9 ++++-- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/ARES/ARES_interface.dm b/code/game/machinery/ARES/ARES_interface.dm index e7c6b5b655f0..0f7d4452d2cc 100644 --- a/code/game/machinery/ARES/ARES_interface.dm +++ b/code/game/machinery/ARES/ARES_interface.dm @@ -339,8 +339,31 @@ // -- Print ASRS Audit Log -- // if("print_req") - playsound(src.loc, 'sound/machines/fax.ogg', 15, 1) - var/contents = {"

ASRS Audit Log

+ playsound = FALSE + if(!datacore.records_asrs.len) + to_chat(user, SPAN_WARNING("There are no records to print!")) + playsound(src, 'sound/machines/buzz-two.ogg', 15, 1) + return + playsound(src, 'sound/machines/fax.ogg', 15, 1) + sleep(3.4 SECONDS) + var/contents = {" +
\ +
\ +

A.S.R.S.

\ +

Automatic Storage Retrieval System

\ +

Audit Log

\ +

Printed By: [last_login]
Print Time: [worldtime2text()]

@@ -375,6 +398,7 @@ var/obj/item/paper/log = new /obj/item/paper(src.loc) log.name = "ASRS Audit Log" log.info += contents + log.icon_state = "paper_uscm_words" visible_message(SPAN_NOTICE("\The [src] prints out a paper.")) // -- Delete Button -- // diff --git a/tgui/packages/tgui/interfaces/AresInterface.jsx b/tgui/packages/tgui/interfaces/AresInterface.jsx index 78836ad54d05..d1109c00e23a 100644 --- a/tgui/packages/tgui/interfaces/AresInterface.jsx +++ b/tgui/packages/tgui/interfaces/AresInterface.jsx @@ -1235,15 +1235,18 @@ const Requisitions = (props) => {

ASRS Audit Log

- {!!records_requisition.length && ( +

+

+ {!!records_requisition.length && (