mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +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
@@ -703,33 +703,43 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
|
|||||||
num2text(MED_I_FREQ) = list()
|
num2text(MED_I_FREQ) = list()
|
||||||
))
|
))
|
||||||
|
|
||||||
GLOBAL_LIST_INIT(valid_ringtones, list(
|
GLOBAL_LIST_INIT(device_ringtones, list("beep" = 'sound/machines/twobeep.ogg',
|
||||||
"beep",
|
"boom" = 'sound/effects/explosionfar.ogg',
|
||||||
"boom",
|
"slip" = 'sound/misc/slip.ogg',
|
||||||
"slip",
|
"honk" = 'sound/items/bikehorn.ogg',
|
||||||
"honk",
|
"SKREE" = 'sound/voice/shriek1.ogg',
|
||||||
"SKREE",
|
// "holy" = 'sound/items/PDA/ambicha4-short.ogg',
|
||||||
"xeno",
|
"xeno" = 'sound/voice/hiss1.ogg',
|
||||||
"dust", // CHOMPEdit - Keeps dust as ringtone
|
"dust" = 'sound/effects/supermatter.ogg', // CHOMPEdit
|
||||||
"spark",
|
"spark" = 'sound/effects/sparks4.ogg',
|
||||||
"rad",
|
"rad" = 'sound/items/geiger/high1.ogg',
|
||||||
"servo",
|
"servo" = 'sound/machines/rig/rigservo.ogg',
|
||||||
// "buh-boop", // CHOMPEdit - No.
|
// "buh-boop" = 'sound/misc/buh-boop.ogg', // CHOMPRemove
|
||||||
"trombone",
|
"trombone" = 'sound/misc/sadtrombone.ogg',
|
||||||
"whistle",
|
"whistle" = 'sound/misc/boatswain.ogg',
|
||||||
"chirp",
|
"chirp" = 'sound/misc/nymphchirp.ogg',
|
||||||
"slurp",
|
"slurp" = 'sound/items/drink.ogg',
|
||||||
"pwing",
|
"pwing" = 'sound/items/nif_tone_good.ogg',
|
||||||
"clack",
|
"clack" = 'sound/items/storage/toolbox.ogg',
|
||||||
"bzzt",
|
"bzzt" = 'sound/misc/null.ogg', //vibrate mode
|
||||||
"chimes",
|
"chimes" = 'sound/misc/notice3.ogg',
|
||||||
"prbt",
|
"prbt" = 'sound/voice/prbt.ogg',
|
||||||
"bark",
|
"bark" = 'sound/voice/bark2.ogg',
|
||||||
"bork",
|
"bork" = 'sound/voice/bork.ogg',
|
||||||
"roark",
|
"roark" = 'sound/voice/roarbark.ogg',
|
||||||
"chitter",
|
"chitter" = 'sound/voice/moth/moth_chitter.ogg',
|
||||||
"squish"
|
"squish" = 'sound/effects/slime_squish.ogg',
|
||||||
))
|
"bubble"= 'sound/effects/bubbles.ogg',
|
||||||
|
"silly" = 'sound/effects/whistle.ogg',
|
||||||
|
// "frog" = 'sound/voice/Croak.ogg',
|
||||||
|
"peep" = 'sound/voice/peep.ogg',
|
||||||
|
"quack" = 'sound/voice/quack.ogg',
|
||||||
|
// "ough" = 'sound/misc/ough.ogg',
|
||||||
|
"stamp" = 'sound/bureaucracy/stamp.ogg',
|
||||||
|
"gnome" = 'sound/items/hooh.ogg',
|
||||||
|
"ratchet" = 'sound/items/Ratchet.ogg',
|
||||||
|
"tether" = 'sound/items/tinytether.ogg'
|
||||||
|
))
|
||||||
|
|
||||||
GLOBAL_LIST_EMPTY(seen_citizenships)
|
GLOBAL_LIST_EMPTY(seen_citizenships)
|
||||||
GLOBAL_LIST_EMPTY(seen_systems)
|
GLOBAL_LIST_EMPTY(seen_systems)
|
||||||
|
|||||||
@@ -77,17 +77,6 @@
|
|||||||
|
|
||||||
// Ringtones! (Based on the PDA ones)
|
// Ringtones! (Based on the PDA ones)
|
||||||
var/ttone = "beep" //The ringtone!
|
var/ttone = "beep" //The ringtone!
|
||||||
var/list/ttone_sound = list("beep" = 'sound/machines/twobeep.ogg',
|
|
||||||
"boom" = 'sound/effects/explosionfar.ogg',
|
|
||||||
"slip" = 'sound/misc/slip.ogg',
|
|
||||||
"honk" = 'sound/items/bikehorn.ogg',
|
|
||||||
"SKREE" = 'sound/voice/shriek1.ogg',
|
|
||||||
// "holy" = 'sound/items/PDA/ambicha4-short.ogg',
|
|
||||||
"xeno" = 'sound/voice/hiss1.ogg',
|
|
||||||
"dust" = 'sound/effects/supermatter.ogg',
|
|
||||||
"spark" = 'sound/effects/sparks4.ogg',
|
|
||||||
"rad" = 'sound/items/geiger/high1.ogg',
|
|
||||||
"servo" = 'sound/machines/rig/rigservo.ogg')
|
|
||||||
pickup_sound = 'sound/items/pickup/device.ogg'
|
pickup_sound = 'sound/items/pickup/device.ogg'
|
||||||
drop_sound = 'sound/items/drop/device.ogg'
|
drop_sound = 'sound/items/drop/device.ogg'
|
||||||
|
|
||||||
|
|||||||
@@ -77,8 +77,8 @@
|
|||||||
|
|
||||||
if(ringer)
|
if(ringer)
|
||||||
var/S
|
var/S
|
||||||
if(ttone in ttone_sound)
|
if(ttone in GLOB.device_ringtones)
|
||||||
S = ttone_sound[ttone]
|
S = GLOB.device_ringtones[ttone]
|
||||||
else
|
else
|
||||||
S = 'sound/machines/twobeep.ogg'
|
S = 'sound/machines/twobeep.ogg'
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@
|
|||||||
return TOPIC_REFRESH
|
return TOPIC_REFRESH
|
||||||
|
|
||||||
if("set_ringtone")
|
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)
|
if(!choice)
|
||||||
return TOPIC_NOACTION
|
return TOPIC_NOACTION
|
||||||
if(choice == "Other")
|
if(choice == "Other")
|
||||||
@@ -219,6 +219,13 @@
|
|||||||
pref.ringtone = choice
|
pref.ringtone = choice
|
||||||
return TOPIC_REFRESH
|
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")
|
// if("toggle_shoes")
|
||||||
// pref.shoe_hater = !pref.shoe_hater
|
// pref.shoe_hater = !pref.shoe_hater
|
||||||
// return TOPIC_REFRESH
|
// return TOPIC_REFRESH
|
||||||
|
|||||||
@@ -26,31 +26,6 @@
|
|||||||
var/mimeamt = 0 //How many silence left when infected with mime.exe
|
var/mimeamt = 0 //How many silence left when infected with mime.exe
|
||||||
var/detonate = 1 // Can the PDA be blown up?
|
var/detonate = 1 // Can the PDA be blown up?
|
||||||
var/ttone = "beep" //The ringtone!
|
var/ttone = "beep" //The ringtone!
|
||||||
var/list/ttone_sound = list("beep" = 'sound/machines/twobeep.ogg',
|
|
||||||
"boom" = 'sound/effects/explosionfar.ogg',
|
|
||||||
"slip" = 'sound/misc/slip.ogg',
|
|
||||||
"honk" = 'sound/items/bikehorn.ogg',
|
|
||||||
"SKREE" = 'sound/voice/shriek1.ogg',
|
|
||||||
"xeno" = 'sound/voice/hiss1.ogg',
|
|
||||||
"dust" = 'sound/effects/supermatter.ogg', // CHOMPEdit - Keeps dust as ringtone
|
|
||||||
"spark" = 'sound/effects/sparks4.ogg',
|
|
||||||
"rad" = 'sound/items/geiger/high1.ogg',
|
|
||||||
"servo" = 'sound/machines/rig/rigservo.ogg',
|
|
||||||
// "buh-boop" = 'sound/misc/buh-boop.ogg', // CHOMPEdit - No.
|
|
||||||
"trombone" = 'sound/misc/sadtrombone.ogg',
|
|
||||||
"whistle" = 'sound/misc/boatswain.ogg',
|
|
||||||
"chirp" = 'sound/misc/nymphchirp.ogg',
|
|
||||||
"slurp" = 'sound/items/drink.ogg',
|
|
||||||
"pwing" = 'sound/items/nif_tone_good.ogg',
|
|
||||||
"clack" = 'sound/items/storage/toolbox.ogg',
|
|
||||||
"bzzt" = 'sound/misc/null.ogg', //vibrate mode
|
|
||||||
"chimes" = 'sound/misc/notice3.ogg',
|
|
||||||
"prbt" = 'sound/voice/prbt.ogg',
|
|
||||||
"bark" = 'sound/voice/bark2.ogg',
|
|
||||||
"bork" = 'sound/voice/bork.ogg',
|
|
||||||
"roark" = 'sound/voice/roarbark.ogg',
|
|
||||||
"chitter" = 'sound/voice/moth/moth_chitter.ogg',
|
|
||||||
"squish" = 'sound/effects/slime_squish.ogg')
|
|
||||||
var/hidden = 0 // Is the PDA hidden from the PDA list?
|
var/hidden = 0 // Is the PDA hidden from the PDA list?
|
||||||
var/touch_silent = 0 //If 1, no beeps on interacting.
|
var/touch_silent = 0 //If 1, no beeps on interacting.
|
||||||
|
|
||||||
@@ -103,8 +78,8 @@
|
|||||||
/obj/item/pda/proc/play_ringtone()
|
/obj/item/pda/proc/play_ringtone()
|
||||||
var/S
|
var/S
|
||||||
|
|
||||||
if(ttone in ttone_sound)
|
if(ttone in GLOB.device_ringtones)
|
||||||
S = ttone_sound[ttone]
|
S = GLOB.device_ringtones[ttone]
|
||||||
else
|
else
|
||||||
S = 'sound/machines/twobeep.ogg'
|
S = 'sound/machines/twobeep.ogg'
|
||||||
playsound(loc, S, 50, 1)
|
playsound(loc, S, 50, 1)
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export const SubtabEquipment = (props: {
|
|||||||
))}
|
))}
|
||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
))}
|
))}
|
||||||
<LabeledList.Item label="Communicator Visibile">
|
<LabeledList.Item label="Communicator Visible">
|
||||||
<Button onClick={() => act('toggle_comm_visibility')}>
|
<Button onClick={() => act('toggle_comm_visibility')}>
|
||||||
{communicator_visibility ? 'Yes' : 'No'}
|
{communicator_visibility ? 'Yes' : 'No'}
|
||||||
</Button>
|
</Button>
|
||||||
@@ -70,6 +70,7 @@ export const SubtabEquipment = (props: {
|
|||||||
<Button onClick={() => act('set_ringtone')}>
|
<Button onClick={() => act('set_ringtone')}>
|
||||||
{ringtone || 'None'}
|
{ringtone || 'None'}
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button icon="volume-high" onClick={() => act('test_ringtone')}/>
|
||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
{/* <LabeledList.Item label="Spawn With Shoes">
|
{/* <LabeledList.Item label="Spawn With Shoes">
|
||||||
<Button onClick={() => act('toggle_shoes')}>
|
<Button onClick={() => act('toggle_shoes')}>
|
||||||
|
|||||||
Reference in New Issue
Block a user