From cacb0de75adccd524fb3aa88f13464f816c58752 Mon Sep 17 00:00:00 2001 From: Casey Date: Thu, 9 Jun 2022 12:00:05 -0400 Subject: [PATCH] Tiny PDA UI Fix & Communicator Changes --- .../objects/items/devices/communicator/messaging.dm | 13 ++++++++++++- tgui/packages/tgui/interfaces/pda/pda_messenger.js | 4 ++++ tgui/public/tgui.bundle.js | 6 +++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/devices/communicator/messaging.dm b/code/game/objects/items/devices/communicator/messaging.dm index 4195d1db98..b76f637b02 100644 --- a/code/game/objects/items/devices/communicator/messaging.dm +++ b/code/game/objects/items/devices/communicator/messaging.dm @@ -95,7 +95,18 @@ L = loc if(L) - to_chat(L, "[bicon(src)] Message from [who].") + to_chat(L, "[bicon(src)] Message from [who]: \"[text]\" (Reply)") + +// This is the only Topic the communicators really uses +/obj/item/device/communicator/Topic(href, href_list) + switch(href_list["action"]) + if("Reply") + var/obj/item/device/communicator/comm = locate(href_list["target"]) + var/message = input(usr, "Enter your message below.", "Reply") + + if(message) + exonet.send_message(comm.exonet.address, "text", message) + to_chat(usr, "[bicon(src)] Sent message to [comm.owner], \"[message]\"") // Verb: text_communicator() // Parameters: None diff --git a/tgui/packages/tgui/interfaces/pda/pda_messenger.js b/tgui/packages/tgui/interfaces/pda/pda_messenger.js index ed22e86070..664ebc7eeb 100644 --- a/tgui/packages/tgui/interfaces/pda/pda_messenger.js +++ b/tgui/packages/tgui/interfaces/pda/pda_messenger.js @@ -106,6 +106,10 @@ const ActiveConversation = (props, context) => { } height="450px" stretchContents> +