mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user