Merge pull request #15638 from AffectedArc07/force-white-runechat

Allows forcing of runechat colour for readability
This commit is contained in:
Fox McCloud
2021-03-11 13:58:41 -05:00
committed by GitHub
4 changed files with 15 additions and 2 deletions
@@ -204,6 +204,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.")