[MIRROR] Moves Ringtones To A Unified List (#11385)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-11 23:42:30 -07:00
committed by GitHub
parent b4093af838
commit 645e09dcde
6 changed files with 51 additions and 69 deletions

View File

@@ -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