mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Chat types and colors (#7377)
Co-authored-by: Selis <sirlionfur@hotmail.de> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -46,7 +46,9 @@
|
||||
|
||||
for(var/client/C in GLOB.admins)
|
||||
if(C.is_preference_enabled(/datum/client_preference/debug/show_debug_logs))
|
||||
to_chat(C, "<span class='filter_debuglog'>DEBUG: [text]</span>")
|
||||
to_chat(C,
|
||||
type = MESSAGE_TYPE_DEBUG,
|
||||
html = "<span class='filter_debuglog'>DEBUG: [text]</span>")
|
||||
|
||||
/proc/log_game(text)
|
||||
if (config.log_game)
|
||||
|
||||
@@ -8,7 +8,10 @@ var/global/floorIsLava = 0
|
||||
|
||||
for(var/client/C in GLOB.admins)
|
||||
if((R_ADMIN|R_MOD) & C.holder.rights)
|
||||
to_chat(C,msg)
|
||||
to_chat(C,
|
||||
type = MESSAGE_TYPE_ADMINLOG,
|
||||
html = msg,
|
||||
confidential = TRUE)
|
||||
|
||||
/proc/msg_admin_attack(var/text) //Toggleable Attack Messages
|
||||
var/rendered = "<span class='filter_attacklog log_message'><span class='prefix'>ATTACK:</span> <span class=\"message\">[text]</span></span>"
|
||||
@@ -16,7 +19,10 @@ var/global/floorIsLava = 0
|
||||
if((R_ADMIN|R_MOD) & C.holder.rights)
|
||||
if(C.is_preference_enabled(/datum/client_preference/mod/show_attack_logs))
|
||||
var/msg = rendered
|
||||
to_chat(C,msg)
|
||||
to_chat(C,
|
||||
type = MESSAGE_TYPE_ATTACKLOG,
|
||||
html = msg,
|
||||
confidential = TRUE)
|
||||
|
||||
/proc/admin_notice(var/message, var/rights)
|
||||
for(var/mob/M in mob_list)
|
||||
|
||||
@@ -72,11 +72,15 @@
|
||||
/datum/nifsoft/soulcatcher/proc/notify_into(var/message)
|
||||
var/sound = nif.good_sound
|
||||
|
||||
to_chat(nif.human,"<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>Soulcatcher</b> displays, \"<span class='notice nif'>[message]</span>\"</span>")
|
||||
to_chat(nif.human,
|
||||
type = MESSAGE_TYPE_NIF,
|
||||
html = "<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>Soulcatcher</b> displays, \"<span class='notice nif'>[message]</span>\"</span>")
|
||||
nif.human << sound
|
||||
|
||||
for(var/mob/living/carbon/brain/caught_soul/CS as anything in brainmobs)
|
||||
to_chat(CS,"<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>Soulcatcher</b> displays, \"<span class='notice nif'>[message]</span>\"</span>")
|
||||
to_chat(CS,
|
||||
type = MESSAGE_TYPE_NIF,
|
||||
html = "<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>Soulcatcher</b> displays, \"<span class='notice nif'>[message]</span>\"</span>")
|
||||
CS << sound
|
||||
|
||||
/datum/nifsoft/soulcatcher/proc/say_into(var/message, var/mob/living/sender, var/mob/eyeobj)
|
||||
@@ -88,9 +92,13 @@
|
||||
|
||||
//Not AR Projecting
|
||||
else
|
||||
to_chat(nif.human,"<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>[sender_name]</b> speaks, \"[message]\"</span>")
|
||||
to_chat(nif.human,
|
||||
type = MESSAGE_TYPE_NIF,
|
||||
html = "<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>[sender_name]</b> speaks, \"[message]\"</span>")
|
||||
for(var/mob/living/carbon/brain/caught_soul/CS as anything in brainmobs)
|
||||
to_chat(CS,"<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>[sender_name]</b> speaks, \"[message]\"</span>")
|
||||
to_chat(CS,
|
||||
type = MESSAGE_TYPE_NIF,
|
||||
html = "<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>[sender_name]</b> speaks, \"[message]\"</span>")
|
||||
|
||||
log_nsay(message,nif.human.real_name,sender)
|
||||
|
||||
@@ -103,9 +111,13 @@
|
||||
|
||||
//Not AR Projecting
|
||||
else
|
||||
to_chat(nif.human,"<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>[sender_name]</b> [message]</span>")
|
||||
to_chat(nif.human,
|
||||
type = MESSAGE_TYPE_NIF,
|
||||
html = "<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>[sender_name]</b> [message]</span>")
|
||||
for(var/mob/living/carbon/brain/caught_soul/CS as anything in brainmobs)
|
||||
to_chat(CS,"<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>[sender_name]</b> [message]</span>")
|
||||
to_chat(CS,
|
||||
type = MESSAGE_TYPE_NIF,
|
||||
html = "<span class='nif'><b>\[\icon[nif.big_icon][bicon(nif.big_icon)]NIF\]</b> <b>[sender_name]</b> [message]</span>")
|
||||
|
||||
log_nme(message,nif.human.real_name,sender)
|
||||
|
||||
|
||||
@@ -319,6 +319,26 @@ img.icon.bigicon {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mentor_channel {
|
||||
color: #808000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mod_channel {
|
||||
color: #735638;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.admin_channel {
|
||||
color: #9611d4;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.event_channel {
|
||||
color: #cc3399;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -571,6 +591,11 @@ img.icon.bigicon {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.log_message {
|
||||
color: #386aff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.unconscious {
|
||||
color: #a4bad6;
|
||||
font-weight: bold;
|
||||
|
||||
@@ -337,6 +337,26 @@ img.icon.bigicon {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mentor_channel {
|
||||
color: #808000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mod_channel {
|
||||
color: #735638;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.admin_channel {
|
||||
color: #9611d4;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.event_channel {
|
||||
color: #cc3399;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -598,6 +618,11 @@ h2.alert {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.log_message {
|
||||
color: #386aff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.unconscious {
|
||||
color: #0000ff;
|
||||
font-weight: bold;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user