mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
Adds message boxes to the chat system (#22280)
* initial working commit * fix this * helpers * tweaks * text being silly moment * antags are red * Update goon/browserassets/css/browserOutput-dark.css Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/carbon/brain/robotic_brain.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * review and warning fixes * refactor antag greetings * tweaks to include more things * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/antagonists/traitor/datum_mindslave.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * fixes vial spawned antags * Update code/datums/mind.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
@@ -974,8 +974,7 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
to_chat(T, "<span class='notice'><b><font size=3>Man up and deal with it.</font></b></span>")
|
||||
to_chat(T, "<span class='notice'>Move on.</span>")
|
||||
to_chat(T, chat_box_notice_thick("<span class='notice'><b><font size=4>Man up.<br> Deal with it.</font></b><br>Move on.</span>"))
|
||||
SEND_SOUND(T, sound('sound/voice/manup1.ogg'))
|
||||
|
||||
log_admin("[key_name(usr)] told [key_name(T)] to man up and deal with it.")
|
||||
@@ -994,7 +993,7 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
|
||||
if(confirm == "Yes")
|
||||
var/manned_up_sound = sound('sound/voice/manup1.ogg')
|
||||
for(var/sissy in GLOB.player_list)
|
||||
to_chat(sissy, "<br><center><span class='notice'><b><font size=4>Man up.<br> Deal with it.</font></b><br>Move on.</span></center><br>")
|
||||
to_chat(sissy, chat_box_notice_thick("<span class='notice'><b><font size=4>Man up.<br> Deal with it.</font></b><br>Move on.</span>"))
|
||||
SEND_SOUND(sissy, manned_up_sound)
|
||||
|
||||
log_admin("[key_name(usr)] told everyone to man up and deal with it.")
|
||||
|
||||
@@ -421,7 +421,7 @@ GLOBAL_VAR_INIT(nologevent, 0)
|
||||
if(!check_rights(R_SERVER,0))
|
||||
message = adminscrub(message,500)
|
||||
message = replacetext(message, "\n", "<br>") // required since we're putting it in a <p> tag
|
||||
to_chat(world, "<span class='notice'><b>[usr.client.holder.fakekey ? "Administrator" : usr.key] Announces:</b><p style='text-indent: 50px'>[message]</p></span>")
|
||||
to_chat(world, chat_box_notice("<span class='notice'><b>[usr.client.holder.fakekey ? "Administrator" : usr.key] Announces:</b><br><br><p>[message]</p></span>"))
|
||||
log_admin("Announce: [key_name(usr)] : [message]")
|
||||
for(var/client/clients_to_alert in GLOB.clients)
|
||||
window_flash(clients_to_alert)
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
|
||||
|
||||
var/emoji_msg = "<span class='emoji_enabled'>[msg]</span>"
|
||||
recieve_message = "<span class='[recieve_span]'>[type] from-<b>[recieve_pm_type] [C.holder ? key_name(src, TRUE, type) : key_name_hidden(src, TRUE, type)]</b>: [emoji_msg]</span>"
|
||||
recieve_message = chat_box_red("<span class='[recieve_span]'>[type] from-<b>[recieve_pm_type] [C.holder ? key_name(src, TRUE, type) : key_name_hidden(src, TRUE, type)]</b>:<br><br>[emoji_msg]</span>")
|
||||
to_chat(C, recieve_message)
|
||||
var/ping_link = check_rights(R_ADMIN, 0, mob) ? "(<a href='?src=[pm_tracker.UID()];ping=[C.key]'>PING</a>)" : ""
|
||||
var/window_link = "(<a href='?src=[pm_tracker.UID()];newtitle=[C.key]'>WINDOW</a>)"
|
||||
|
||||
@@ -20,8 +20,10 @@
|
||||
|
||||
H.mind.add_mind_objective(/datum/objective/hijack)
|
||||
|
||||
to_chat(H, "<B>You are a Highlander. Kill all other Highlanders. There can be only one.</B>")
|
||||
H.mind.announce_objectives(title = FALSE)
|
||||
var/list/messages = list()
|
||||
messages.Add("<b>You are a Highlander. Kill all other Highlanders. There can be only one.</b>")
|
||||
messages.Add(H.mind.prepare_announce_objectives(FALSE))
|
||||
to_chat(H, chat_box_red(messages.Join("<br>")))
|
||||
|
||||
for(var/obj/item/I in H)
|
||||
if(istype(I, /obj/item/implant))
|
||||
@@ -72,8 +74,10 @@
|
||||
|
||||
H.mind.add_mind_objective(/datum/objective/hijackclone)
|
||||
|
||||
to_chat(H, "<B>You are the multiverse summoner. Activate your blade to summon copies of yourself from another universe to fight by your side.</B>")
|
||||
H.mind.announce_objectives(title = FALSE)
|
||||
var/list/messages = list()
|
||||
messages.Add("<b>You are the multiverse summoner. Activate your blade to summon copies of yourself from another universe to fight by your side.</b>")
|
||||
messages.Add(H.mind.prepare_announce_objectives(FALSE))
|
||||
to_chat(H, chat_box_red(messages.Join("<br>")))
|
||||
|
||||
var/obj/item/slot_item_ID = H.get_item_by_slot(SLOT_HUD_WEAR_ID)
|
||||
qdel(slot_item_ID)
|
||||
|
||||
Reference in New Issue
Block a user