mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-17 10:05:27 +01:00
Rebase onto Master for Volume Control Panel, Squash Commits
This commit is contained in:
@@ -153,6 +153,12 @@ var/list/_client_preferences_by_type
|
||||
enabled_description = "Audible"
|
||||
disabled_description = "Silent"
|
||||
|
||||
/datum/client_preference/pickup_sounds
|
||||
description = "Picked Up Item Sounds"
|
||||
key = "SOUND_PICKED"
|
||||
enabled_description = "Enabled"
|
||||
disabled_description = "Disabled"
|
||||
|
||||
/datum/client_preference/drop_sounds
|
||||
description = "Dropped Item Sounds"
|
||||
key = "SOUND_DROPPED"
|
||||
|
||||
@@ -254,6 +254,21 @@
|
||||
|
||||
feedback_add_details("admin_verb","TAirPumpNoise")
|
||||
|
||||
/client/verb/toggle_pickup_sounds()
|
||||
set name = "Toggle Picked Up Item Sounds"
|
||||
set category = "Preferences"
|
||||
set desc = "Toggles sounds when items are picked up or thrown."
|
||||
|
||||
var/pref_path = /datum/client_preference/pickup_sounds
|
||||
|
||||
toggle_preference(pref_path)
|
||||
|
||||
to_chat(src, "You will [ (is_preference_enabled(pref_path)) ? "now" : "no longer"] hear sounds when items are picked up or thrown.")
|
||||
|
||||
SScharacter_setup.queue_preferences_save(prefs)
|
||||
|
||||
feedback_add_details("admin_verb", "TPickupSounds")
|
||||
|
||||
/client/verb/toggle_drop_sounds()
|
||||
set name = "Toggle Dropped Item Sounds"
|
||||
set category = "Preferences"
|
||||
|
||||
Reference in New Issue
Block a user