PDA Chat Improvements (#19587)

* Made a bunch of improvements to the PDA chat program. Clicking on
someone or a channel's name will now immediately open the chat. Text
inputs will now not input unless you press enter.
* PDA chat messages will now have spaces between them, unless it's the
same person sending multiple messages in a row.
* Updating a PDA chat channel's password will now output that it changed
into the chat.
This commit is contained in:
Geeves
2024-07-17 21:11:28 +00:00
committed by GitHub
parent 148266d251
commit bfa86f757a
6 changed files with 115 additions and 45 deletions
@@ -254,6 +254,7 @@
else
conv.cl_join(src)
computer.update_static_data_for_all_viewers()
active = conv
. = TRUE
if(action == "set_active")
@@ -298,8 +299,9 @@
. = TRUE
if(action == "new_channel")
GLOB.ntnet_global.begin_conversation(src, sanitize(params["new_channel"]))
var/datum/ntnet_conversation/conversation = GLOB.ntnet_global.begin_conversation(src, sanitize(params["new_channel"]))
computer.update_static_data_for_all_viewers()
active = conversation
. = TRUE
if(action == "delete")
@@ -312,8 +314,9 @@
if(action == "direct")
var/datum/ntnet_user/tUser = locate(params["direct"])
GLOB.ntnet_global.begin_direct(src, tUser)
var/datum/ntnet_conversation/conversation = GLOB.ntnet_global.begin_direct(src, tUser)
computer.update_static_data_for_all_viewers()
active = conversation
. = TRUE
if(action == "toggleadmin")