mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[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:
committed by
GitHub
parent
b4093af838
commit
645e09dcde
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user