mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Adds a pref for hearing instrument sounds (#9416)
Suggested here https://forums.aurorastation.org/topic/14618-please-for-the-love-of-god-add-a-preference-toggle-for-musical-instrument-sounds/?_fromLogin=1 Did I miss any instruments?
This commit is contained in:
@@ -5,13 +5,14 @@
|
||||
/client/proc/toggle_vox_voice,
|
||||
/client/proc/Toggle_dropsounds,
|
||||
/client/proc/Toggle_arcadesounds,
|
||||
/client/proc/Toggle_radiosounds
|
||||
/client/proc/Toggle_radiosounds,
|
||||
/client/proc/Toggle_instrumentsounds
|
||||
)
|
||||
|
||||
/client/verb/asf_toggle()
|
||||
set name = "Open ASFX Tab"
|
||||
set category = "Preferences"
|
||||
set desc = "Open the ambiance sound effects toggle tab"
|
||||
set desc = "Open the ambience sound effects toggle tab"
|
||||
|
||||
verbs ^= asfx_togs
|
||||
return
|
||||
@@ -99,4 +100,16 @@
|
||||
if(prefs.asfx_togs & ASFX_RADIO)
|
||||
to_chat(src, "You will now hear radio sounds.")
|
||||
else
|
||||
to_chat(src, "<font color='red'>You will no longer hear radio sounds.</font>")
|
||||
to_chat(src, "<font color='red'>You will no longer hear radio sounds.</font>")
|
||||
|
||||
/client/proc/Toggle_instrumentsounds()
|
||||
set name = "Toggle Instrument SFX"
|
||||
set category = "SoundFx Prefs"
|
||||
set desc = "Toggles hearing noises made by instruments."
|
||||
|
||||
prefs.asfx_togs ^= ASFX_INSTRUMENT
|
||||
prefs.save_preferences()
|
||||
if(prefs.asfx_togs & ASFX_INSTRUMENT)
|
||||
to_chat(src, "You will now hear instrument sounds.")
|
||||
else
|
||||
to_chat(src, "<font color='red'>You will no longer hear instrument sounds.</font>")
|
||||
Reference in New Issue
Block a user