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.")