This commit is contained in:
Enric Gabriel
2020-08-17 23:06:41 -03:00
parent fef1bef2ea
commit 0aea0b2303
22 changed files with 165 additions and 137 deletions
+8
View File
@@ -674,6 +674,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
dat += "<b>Ghost PDA:</b> <a href='?_src_=prefs;preference=ghost_pda'>[(chat_toggles & CHAT_GHOSTPDA) ? "All Messages" : "Nearest Creatures"]</a><br>"
dat += "<b>Window Flashing:</b> <a href='?_src_=prefs;preference=winflash'>[(windowflashing) ? "Enabled":"Disabled"]</a><br>"
dat += "<br>"
//SKYRAT CHANGES BEGIN
dat += "<b>Play Megafauna Music:</b> <a href='?_src_=prefs;preference=hear_megafauna'>[(toggles & SOUND_MEGAFAUNA) ? "Enabled":"Disabled"]</a><br>"
//SKYRAT CHANGES END
dat += "<b>Play Admin MIDIs:</b> <a href='?_src_=prefs;preference=hear_midis'>[(toggles & SOUND_MIDI) ? "Enabled":"Disabled"]</a><br>"
dat += "<b>Play Lobby Music:</b> <a href='?_src_=prefs;preference=lobby_music'>[(toggles & SOUND_LOBBY) ? "Enabled":"Disabled"]</a><br>"
dat += "<b>See Pull Requests:</b> <a href='?_src_=prefs;preference=pull_requests'>[(chat_toggles & CHAT_PULLR) ? "Enabled":"Disabled"]</a><br>"
@@ -2469,6 +2472,11 @@ GLOBAL_LIST_EMPTY(preferences_datums)
if("hear_midis")
toggles ^= SOUND_MIDI
//SKYRAT CHANGES BEGIN - Megafauna music
if("hear_megafauna")
toggles ^= SOUND_MEGAFAUNA
//SKYRAT CHANGES END
if("verb_consent") // Skyrat - ERP Mechanic Addition
toggles ^= VERB_CONSENT // Skyrat - ERP Mechanic Addition
@@ -132,24 +132,6 @@ TOGGLE_CHECKBOX(/datum/verbs/menu/Settings/Sound, toggletitlemusic)()
/datum/verbs/menu/Settings/Sound/toggletitlemusic/Get_checked(client/C)
return C.prefs.toggles & SOUND_LOBBY
//Sandstorm additions
TOGGLE_CHECKBOX(/datum/verbs/menu/Settings/Sound, Toggle_BossMusic)()
set name = "Hear/Silence Boss Musics"
set category = "Preferences"
set desc = "Hear Boss Musics"
usr.client.prefs.toggles ^= SOUND_BOSS_MUSIC
usr.client.prefs.save_preferences()
if(usr.client.prefs.toggles & SOUND_BOSS_MUSIC)
to_chat(usr, "You will now hear Boss Musics.")
else
to_chat(usr, "You will no longer hear Boss Musics.")
usr.stop_sound_channel(CHANNEL_BOSSMUSIC)
usr.stop_sound_channel(CHANNEL_BUZZ)
SSblackbox.record_feedback("nested tally", "preferences_verb", 1, list("Toggle Boss Music", "[usr.client.prefs.toggles & SOUND_BOSS_MUSIC ? "Enabled" : "Disabled"]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/datum/verbs/menu/Settings/Sound/Toggle_Soundscape/Get_checked(client/C)
return C.prefs.toggles & SOUND_BOSS_MUSIC
//End of Sandstorm additions
TOGGLE_CHECKBOX(/datum/verbs/menu/Settings/Sound, togglemidis)()
set name = "Hear/Silence Midis"
set category = "Preferences"