mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Tiny PDA UI Fix & Communicator Changes
This commit is contained in:
@@ -95,7 +95,18 @@
|
||||
L = loc
|
||||
|
||||
if(L)
|
||||
to_chat(L, "<span class='notice'>[bicon(src)] Message from [who].</span>")
|
||||
to_chat(L, "<span class='notice'>[bicon(src)] Message from [who]: <b>\"[text]\"</b> (<a href='?src=\ref[src];action=Reply;target=\ref[candidate]'>Reply</a>)</span>")
|
||||
|
||||
// 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, "<span class='notice'>[bicon(src)] Sent message to [comm.owner], <b>\"[message]\"</b></span>")
|
||||
|
||||
// Verb: text_communicator()
|
||||
// Parameters: None
|
||||
|
||||
@@ -106,6 +106,10 @@ const ActiveConversation = (props, context) => {
|
||||
}
|
||||
height="450px"
|
||||
stretchContents>
|
||||
<Button
|
||||
icon="comment"
|
||||
onClick={() => act("Message", { "target": active_conversation })}
|
||||
content="Reply" />
|
||||
<Section style={{
|
||||
"height": "97%",
|
||||
"overflow-y": "auto",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user