Allows forcing of runechat colour for readability

This commit is contained in:
AffectedArc07
2021-02-28 16:10:53 +00:00
parent 88c00d12c6
commit a5d98e8e9b
4 changed files with 15 additions and 2 deletions
@@ -205,6 +205,8 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts
var/gear_tab = "General"
// Parallax
var/parallax = PARALLAX_HIGH
/// Do we want to force our runechat colour to be white?
var/force_white_runechat = FALSE
/datum/preferences/New(client/C)
parent = C
@@ -340,3 +340,11 @@
prefs.toggles2 ^= PREFTOGGLE_2_REVERB_DISABLE
prefs.save_preferences(src)
to_chat(src, "You will [(prefs.toggles2 & PREFTOGGLE_2_REVERB_DISABLE) ? "no longer" : "now"] get reverb on ingame sounds.")
/client/verb/toggle_forced_white_runechat()
set name = "Toggle Runechat Colour Forcing"
set category = "Preferences"
set desc = "Toggles forcing your runechat colour to white"
prefs.toggles2 ^= PREFTOGGLE_2_FORCE_WHITE_RUNECHAT
prefs.save_preferences(src)
to_chat(src, "Your runechats will [(prefs.toggles2 & PREFTOGGLE_2_FORCE_WHITE_RUNECHAT) ? "no longer" : "now"] be forced to be white.")
@@ -1978,7 +1978,9 @@ Eyes need to have significantly high darksight to shine unless the mob has the X
* Basically just a quick redirect to the DNA handler that gets the species-specific colour handler
*/
/mob/living/carbon/human/get_runechat_color()
return dna.species.get_species_runechat_color(src)
if(client?.prefs.toggles2 & PREFTOGGLE_2_FORCE_WHITE_RUNECHAT)
return "#FFFFFF" // Force white if they want it
return dna.species.get_species_runechat_color(src)
/mob/living/carbon/human/update_runechat_msg_location()
if(ismecha(loc))