Moves Ringtones To A Unified List (#18207)

* move to global ringtone list

* fixes

* new ringtones

* missing

---------

Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
This commit is contained in:
Will
2025-08-11 03:00:00 -07:00
committed by GitHub
co-authored by ShadowLarkens
parent c7f2b9a8b4
commit 1195c11cb6
6 changed files with 51 additions and 67 deletions
@@ -208,7 +208,7 @@
return TOPIC_REFRESH
if("set_ringtone")
var/choice = tgui_input_list(user, "Please select a ringtone. All of these choices come with an associated preset sound. Alternately, select \"Other\" to specify manually.", "Character Preference", GLOB.valid_ringtones + "Other", pref.ringtone)
var/choice = tgui_input_list(user, "Please select a ringtone. All of these choices come with an associated preset sound. Alternately, select \"Other\" to specify manually.", "Character Preference", GLOB.device_ringtones + "Other", pref.ringtone)
if(!choice)
return TOPIC_NOACTION
if(choice == "Other")
@@ -219,6 +219,13 @@
pref.ringtone = choice
return TOPIC_REFRESH
if("test_ringtone")
var/S = 'sound/machines/twobeep.ogg'
if(pref.ringtone in GLOB.device_ringtones)
S = GLOB.device_ringtones[pref.ringtone]
SEND_SOUND(user.client, S)
return TOPIC_NOACTION
if("toggle_shoes")
pref.shoe_hater = !pref.shoe_hater
return TOPIC_REFRESH