mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Final text2voice commit
This commit is contained in:
@@ -102,7 +102,10 @@ datum/preferences
|
||||
var/list/organ_data = list()
|
||||
|
||||
var/list/player_alt_titles = new() // the default name of a job like "Medical Doctor"
|
||||
|
||||
var/accent = "en-us"
|
||||
var/voice = "m1"
|
||||
var/pitch = 50
|
||||
var/talkspeed = 175
|
||||
var/flavor_text = ""
|
||||
var/med_record = ""
|
||||
var/sec_record = ""
|
||||
@@ -176,6 +179,10 @@ datum/preferences
|
||||
dat += "<br>"
|
||||
dat += "Species: <a href='byond://?src=\ref[user];preference=species;task=input'>[species]</a><br>"
|
||||
dat += "Secondary Language:<br><a href='byond://?src=\ref[user];preference=language;task=input'>[language]</a><br>"
|
||||
dat += "Accent: <a href='byond://?src=\ref[user];preference=accent;task=input'>[accent]</a><br>"
|
||||
dat += "Voice: <a href='byond://?src=\ref[user];preference=voice;task=input'>[voice]</a><br>"
|
||||
dat += "Pitch: <a href='?_src_=prefs;preference=pitch;task=input'>[pitch]</a><br>"
|
||||
dat += "Talking Speed: <a href='?_src_=prefs;preference=talkspeed;task=input'>[talkspeed]</a><br>"
|
||||
dat += "Blood Type: <a href='byond://?src=\ref[user];preference=b_type;task=input'>[b_type]</a><br>"
|
||||
dat += "Skin Tone: <a href='?_src_=prefs;preference=s_tone;task=input'>[-s_tone + 35]/220<br></a>"
|
||||
// dat += "Skin pattern: <a href='byond://?src=\ref[user];preference=skin_style;task=input'>Adjust</a><br>"
|
||||
@@ -302,6 +309,7 @@ datum/preferences
|
||||
dat += "<b>Ghost ears:</b> <a href='?_src_=prefs;preference=ghost_ears'><b>[(toggles & CHAT_GHOSTEARS) ? "Nearest Creatures" : "All Speech"]</b></a><br>"
|
||||
dat += "<b>Ghost sight:</b> <a href='?_src_=prefs;preference=ghost_sight'><b>[(toggles & CHAT_GHOSTSIGHT) ? "Nearest Creatures" : "All Emotes"]</b></a><br>"
|
||||
dat += "<b>Ghost radio:</b> <a href='?_src_=prefs;preference=ghost_radio'><b>[(toggles & CHAT_GHOSTRADIO) ? "Nearest Speakers" : "All Chatter"]</b></a><br>"
|
||||
dat += "<b>Hear player voices:</b> <a href='?_src_=prefs;preference=player_voices'><b>[(toggles & SOUND_VOICES) ? "Yes" : "No"]</b></a><br>"
|
||||
|
||||
if(config.allow_Metadata)
|
||||
dat += "<b>OOC Notes:</b> <a href='?_src_=prefs;preference=metadata;task=input'> Edit </a><br>"
|
||||
@@ -1087,6 +1095,23 @@ datum/preferences
|
||||
underwear = underwear_options.Find(new_underwear)
|
||||
ShowChoices(user)
|
||||
|
||||
if("accent")
|
||||
var/new_accent = input(user, "Choose your accent. en-us:American, en:British, en-sc:Scottish", "Character Preference") as null|anything in list("en-us", "en", "en-sc")
|
||||
if(new_accent)
|
||||
accent = new_accent
|
||||
if("voice")
|
||||
var/new_voice = input(user, "Choose your voice. f:Female, m:Male", "Character Preference") as null|anything in list("f1","m1","f2","m2","f3","m3","f4","m4","f5","m5","m6","m7")
|
||||
if(new_voice)
|
||||
voice = new_voice
|
||||
if("pitch")
|
||||
var/new_pitch = input(user, "Choose your character's voice pitch:\n(0-99) Default is 50.", "Character Preference") as num|null
|
||||
if(new_pitch)
|
||||
pitch = max(min( round(text2num(new_pitch)), 99),0)
|
||||
if("talkspeed")
|
||||
var/new_talkspeed = input(user, "Choose your character's voice talk speed:\n(140-240) Default is 175.", "Character Preference") as num|null
|
||||
if(new_talkspeed)
|
||||
talkspeed = max(min( round(text2num(new_talkspeed)), 240),140)
|
||||
|
||||
if("eyes")
|
||||
var/new_eyes = input(user, "Choose your character's eye colour:", "Character Preference") as color|null
|
||||
if(new_eyes)
|
||||
@@ -1267,6 +1292,9 @@ datum/preferences
|
||||
if("ghost_radio")
|
||||
toggles ^= CHAT_GHOSTRADIO
|
||||
|
||||
if("player_voices")
|
||||
toggles ^= SOUND_VOICES
|
||||
|
||||
if("save")
|
||||
save_preferences()
|
||||
save_character()
|
||||
|
||||
@@ -120,6 +120,10 @@
|
||||
S["underwear"] >> underwear
|
||||
S["backbag"] >> backbag
|
||||
S["b_type"] >> b_type
|
||||
S["accent"] >> accent
|
||||
S["voice"] >> voice
|
||||
S["pitch"] >> pitch
|
||||
S["talkspeed"] >> talkspeed
|
||||
|
||||
//Jobs
|
||||
S["alternate_option"] >> alternate_option
|
||||
@@ -174,6 +178,10 @@
|
||||
underwear = sanitize_integer(underwear, 1, underwear_m.len, initial(underwear))
|
||||
backbag = sanitize_integer(backbag, 1, backbaglist.len, initial(backbag))
|
||||
b_type = sanitize_text(b_type, initial(b_type))
|
||||
accent = sanitize_text(accent, initial(accent))
|
||||
voice = sanitize_text(voice, initial(voice))
|
||||
pitch = sanitize_text(pitch, initial(pitch))
|
||||
talkspeed = sanitize_text(talkspeed, initial(talkspeed))
|
||||
|
||||
alternate_option = sanitize_integer(alternate_option, 0, 2, initial(alternate_option))
|
||||
job_civilian_high = sanitize_integer(job_civilian_high, 0, 65535, initial(job_civilian_high))
|
||||
@@ -352,6 +360,10 @@
|
||||
S["underwear"] << underwear
|
||||
S["backbag"] << backbag
|
||||
S["b_type"] << b_type
|
||||
S["accent"] << accent
|
||||
S["voice"] << voice
|
||||
S["pitch"] << pitch
|
||||
S["talkspeed"] << talkspeed
|
||||
|
||||
//Jobs
|
||||
S["alternate_option"] << alternate_option
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
src << "As a ghost, you will now [(prefs.toggles & CHAT_GHOSTRADIO) ? "hear all radio chat in the world" : "only hear from nearby speakers"]."
|
||||
prefs.save_preferences()
|
||||
feedback_add_details("admin_verb","TGR")
|
||||
|
||||
|
||||
/client/proc/toggle_hear_radio()
|
||||
set name = "Show/Hide RadioChatter"
|
||||
set category = "Preferences"
|
||||
@@ -85,6 +85,15 @@
|
||||
src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1) // stop the jamsz
|
||||
feedback_add_details("admin_verb","TLobby") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/verb/togglevoices()
|
||||
set name = "Toggle player voices"
|
||||
set category = "Preferences"
|
||||
set desc = "Toggle hearing player voice sounds"
|
||||
prefs.toggles ^= SOUND_VOICES
|
||||
prefs.save_preferences()
|
||||
src << "You will [(prefs.toggles & SOUND_VOICES) ? "now" : "no longer"] hear voices of players around you, or your own voice."
|
||||
feedback_add_details("admin_verb","TVoice") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/verb/togglemidis()
|
||||
set name = "Hear/Silence Midis"
|
||||
set category = "Preferences"
|
||||
@@ -181,4 +190,4 @@
|
||||
prefs.UI_style_alpha = UI_style_alpha_new
|
||||
prefs.UI_style_color = UI_style_color_new
|
||||
prefs.save_preferences()
|
||||
usr << "UI was saved"
|
||||
usr << "UI was saved"
|
||||
|
||||
Reference in New Issue
Block a user