mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Fixes in-chat icons being broken in oldchat
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
L = get(pda, /mob/living/silicon)
|
||||
|
||||
if(L)
|
||||
to_chat(L, "[bicon(pda)] [message]")
|
||||
to_chat(L, "\icon[pda][bicon(pda)] [message]")
|
||||
SStgui.update_user_uis(L, pda) // Update the receiving user's PDA UI so that they can see the new message
|
||||
|
||||
if(!notify_silent)
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
create_message(usr, P)
|
||||
if(href_list["target"] in conversations) // Need to make sure the message went through, if not welp.
|
||||
active_conversation = href_list["target"]
|
||||
|
||||
|
||||
|
||||
/datum/data/pda/app/messenger/proc/create_message(var/mob/living/U, var/obj/item/device/pda/P)
|
||||
var/t = tgui_input_text(U, "Please enter message", name, null)
|
||||
@@ -178,7 +178,7 @@
|
||||
|
||||
SStgui.update_user_uis(U, P) // Update the sending user's PDA UI so that they can see the new message
|
||||
log_pda("(PDA: [src.name]) sent \"[t]\" to [P.name]", usr)
|
||||
to_chat(U, "[bicon(pda)] <b>Sent message to [P.owner] ([P.ownjob]), </b>\"[t]\"")
|
||||
to_chat(U, "\icon[pda][bicon(pda)] <b>Sent message to [P.owner] ([P.ownjob]), </b>\"[t]\"")
|
||||
else
|
||||
to_chat(U, "<span class='notice'>ERROR: Messaging server is not responding.</span>")
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
/datum/data/pda/app/messenger/multicast
|
||||
/datum/data/pda/app/messenger/multicast/receive_message(list/data, ref)
|
||||
. = ..()
|
||||
|
||||
|
||||
var/obj/item/device/pda/multicaster/M = pda
|
||||
if(!istype(M))
|
||||
return
|
||||
|
||||
@@ -99,7 +99,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
||||
S = 'sound/machines/twobeep.ogg'
|
||||
playsound(loc, S, 50, 1)
|
||||
for(var/mob/O in hearers(3, loc))
|
||||
O.show_message(text("[bicon(src)] *[ttone]*"))
|
||||
O.show_message(text("\icon[src][bicon(src)] *[ttone]*"))
|
||||
|
||||
/obj/item/device/pda/proc/set_ringtone()
|
||||
var/t = tgui_input_text(usr, "Please enter new ringtone", name, ttone)
|
||||
|
||||
Reference in New Issue
Block a user