mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 11:38:12 +01:00
Makes it a preference
This commit is contained in:
@@ -104,6 +104,12 @@ var/list/_client_preferences_by_type
|
||||
key = "EMOTE_NOISES"
|
||||
enabled_description = "Noisy"
|
||||
disabled_description = "Silent"
|
||||
/datum/client_preference/whisubtle_vis
|
||||
description = "Whi/Subtles Ghost Visible"
|
||||
key = "WHISUBTLE_VIS"
|
||||
enabled_description = "Visible"
|
||||
disabled_description = "Hidden"
|
||||
enabled_by_default = FALSE
|
||||
//VOREStation Add End
|
||||
/datum/client_preference/weather_sounds
|
||||
description ="Weather sounds"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//TFF 5/8/19 - minor refactoring of this thing from 09_misc.dm to call this for preferences.
|
||||
datum/preferences
|
||||
/datum/preferences
|
||||
var/show_in_directory = 1 //Show in Character Directory
|
||||
var/sensorpref = 5 //Set character's suit sensor level
|
||||
|
||||
@@ -54,3 +53,18 @@ datum/preferences
|
||||
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!
|
||||
|
||||
/client/verb/toggle_ghost_quiets()
|
||||
set name = "Whisper/Subtle Vis"
|
||||
set category = "Preferences"
|
||||
set desc = "Toggle ghosts viewing your subtles/whispers."
|
||||
|
||||
var/pref_path = /datum/client_preference/whisubtle_vis
|
||||
|
||||
toggle_preference(pref_path)
|
||||
|
||||
to_chat(src, "Ghosts will [ (is_preference_enabled(pref_path)) ? "now" : "no longer"] hear subtles/whispers made by you.")
|
||||
|
||||
SScharacter_setup.queue_preferences_save(prefs)
|
||||
|
||||
feedback_add_details("admin_verb","TWhisubtleVis") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
Reference in New Issue
Block a user