Emote noise toggle

This commit is contained in:
Aronai Sieyes
2020-03-26 11:43:26 -04:00
parent 37f631722b
commit 556ef6acc8
4 changed files with 45 additions and 23 deletions
@@ -98,6 +98,12 @@ var/list/_client_preferences_by_type
key = "DIGEST_NOISES"
enabled_description = "Noisy"
disabled_description = "Silent"
/datum/client_preference/emote_noises
description = "Emote Noises" //MERP
key = "EMOTE_NOISES"
enabled_description = "Noisy"
disabled_description = "Silent"
//VOREStation Add End
/datum/client_preference/weather_sounds
description ="Weather sounds"
+16
View File
@@ -34,3 +34,19 @@ datum/preferences
SScharacter_setup.queue_preferences_save(prefs)
feedback_add_details("admin_verb","TDigestNoise") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/toggle_emote_noises()
set name = "Emote Noises"
set category = "Preferences"
set desc = "Toggles emote noises."
var/pref_path = /datum/client_preference/emote_noises
toggle_preference(pref_path)
to_chat(src, "You will [ (is_preference_enabled(pref_path)) ? "now" : "no longer"] hear emote-related noises.")
SScharacter_setup.queue_preferences_save(prefs)
feedback_add_details("admin_verb","TEmoteNoise") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!