diff --git a/code/modules/client/verbs/ooc.dm b/code/modules/client/verbs/ooc.dm index 9e4f397dbe..ba89ee40df 100644 --- a/code/modules/client/verbs/ooc.dm +++ b/code/modules/client/verbs/ooc.dm @@ -53,14 +53,15 @@ var/ooc_style = "everyone" if(holder && !holder.fakekey) ooc_style = "elevated" - //YawnWider Block Edit Start - if(holder.rights & R_MOD && !(holder.rights & R_BAN)) //Moderator + + if(holder.rights & R_EVENT) //Retired Admins + ooc_style = "event_manager" + if(holder.rights & R_ADMIN && !(holder.rights & R_BAN)) //Game Masters ooc_style = "moderator" if(holder.rights & R_DEBUG && !(holder.rights & R_BAN)) //Developers ooc_style = "developer" if(holder.rights & R_ADMIN && holder.rights & R_BAN) //Admins ooc_style = "admin" - //YawnWider Block Edit End for(var/client/target in GLOB.clients) if(target.is_preference_enabled(/datum/client_preference/show_ooc)) @@ -147,12 +148,12 @@ display_name = holder.fakekey if(mob.stat != DEAD) display_name = mob.name - //VOREStation Add - Resleeving shenanigan prevention + if(ishuman(mob)) var/mob/living/carbon/human/H = mob if(H.original_player && H.original_player != H.ckey) //In a body not their own display_name = "[H.mind.name] (as [H.name])" - //VOREStation Add End + // Everyone in normal viewing range of the LOOC for(var/mob/viewer in m_viewers) @@ -175,12 +176,12 @@ if(target in GLOB.admins) admin_stuff += "/([key])" - to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " [display_name][admin_stuff]: ") + to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " [display_name][admin_stuff]: ") for(var/client/target in r_receivers) var/admin_stuff = "/([key])([admin_jump_link(mob, target.holder)])" - to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " (R)[display_name][admin_stuff]: ") //CHOMPEdit + to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " (R)[display_name][admin_stuff]: ") /mob/proc/get_looc_source() return src diff --git a/code/modules/vchat/README.md b/code/modules/vchat/README.md new file mode 100644 index 0000000000..fc7029b217 --- /dev/null +++ b/code/modules/vchat/README.md @@ -0,0 +1,24 @@ +# VChat +(Please add to this file as you learn how this thing works. Thank you!) +## Development + +To implement changes to VChat, one must modify either vchat.js or vchat_client, + where vchat.js corresponds to what actually appears to the user. + Not all of the logic is isolated within vchat_client, vchat.js handles a significant amount of processing as well. + +### vchat.js + +vchat.js is a development file - it is not actually included in the actual game code. Instead, what the game expects is +the minified version "vchat.min.js" + +Therefore, to have your changes in "vchat.js" apply to the game for either PR or testing - you must first minify your script. +If you are unfamiliar how to, simply you copy the file contants in vchat.js, paste them into https://codebeautify.org/minify-js +or any similar tool and paste its output into vchat.min.js . + +As of 2023/08/05, no tool is provided by the codebase to handle minification for the developer. + +### ss13styles.css + +Handles chat colours, background colours, filtering. + +Please keep this file synchronized with code\stylesheet.dm where possible (filters, lightmode colours). diff --git a/code/modules/vchat/css/css-testing.html b/code/modules/vchat/css/css-testing.html index 94e2844b91..0aee4628e9 100644 --- a/code/modules/vchat/css/css-testing.html +++ b/code/modules/vchat/css/css-testing.html @@ -15,7 +15,7 @@ OOC