mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
My ears need this (#22056)
This commit is contained in:
@@ -131,6 +131,7 @@ var/const/MAX_SAVE_SLOTS = 8
|
||||
var/b_eyes = 0 //Eye color
|
||||
var/species = "Human"
|
||||
var/language = "None" //Secondary language
|
||||
var/hear_instruments = 1
|
||||
|
||||
//Mob preview
|
||||
var/icon/preview_icon = null
|
||||
@@ -354,6 +355,8 @@ var/const/MAX_SAVE_SLOTS = 8
|
||||
<a href='?_src_=prefs;preference=volume'><b>[volume]</b></a><br>
|
||||
<b>Hear player voices</b>
|
||||
<a href='?_src_=prefs;preference=hear_voicesound'><b>[(hear_voicesound) ? "Yes" : "No"]</b></a><br>
|
||||
<b>Hear instruments</b>
|
||||
<a href='?_src_=prefs;preference=hear_instruments'><b>[(hear_instruments) ? "Yes":"No"]</b></a><br>
|
||||
<b>Progress Bars:</b>
|
||||
<a href='?_src_=prefs;preference=progbar'><b>[(progress_bars) ? "Yes" : "No"]</b></a><br>
|
||||
<b>Pause after first step:</b>
|
||||
@@ -1369,6 +1372,8 @@ NOTE: The change will take effect AFTER any current recruiting periods."}
|
||||
stumble = !stumble
|
||||
if("hear_voicesound")
|
||||
hear_voicesound = !hear_voicesound
|
||||
if("hear_instruments")
|
||||
hear_instruments = !hear_instruments
|
||||
if("pulltoggle")
|
||||
pulltoggle = !pulltoggle
|
||||
|
||||
|
||||
@@ -99,6 +99,7 @@
|
||||
attack_animation= text2num(preference_list_client["attack_animation"])
|
||||
pulltoggle = text2num(preference_list_client["pulltoggle"])
|
||||
hear_voicesound = text2num(preference_list_client["hear_voicesound"])
|
||||
hear_instruments = text2num(preference_list_client["hear_instruments"])
|
||||
credits = preference_list_client["credits"]
|
||||
jingle = preference_list_client["jingle"]
|
||||
|
||||
@@ -125,7 +126,7 @@
|
||||
credits = sanitize_inlist(credits, list(CREDITS_NEVER, CREDITS_ALWAYS, CREDITS_NO_RERUNS), initial(credits))
|
||||
jingle = sanitize_inlist(jingle, list(JINGLE_NEVER, JINGLE_CLASSIC, JINGLE_ALL), initial(jingle))
|
||||
hear_voicesound = sanitize_integer(hear_voicesound, 0, 1, initial(hear_voicesound))
|
||||
|
||||
hear_instruments = sanitize_integer(hear_instruments, 0, 1, initial(hear_instruments))
|
||||
initialize_preferences()
|
||||
return 1
|
||||
|
||||
@@ -207,15 +208,15 @@
|
||||
check.Add("SELECT ckey FROM client WHERE ckey = ?", ckey)
|
||||
if(check.Execute(db))
|
||||
if(!check.NextRow())
|
||||
q.Add("INSERT into client (ckey, ooc_color, lastchangelog, UI_style, default_slot, toggles, UI_style_color, UI_style_alpha, warns, warnbans, randomslot, volume, usewmp, special, usenanoui, tooltips, progress_bars, space_parallax, space_dust, parallax_speed, stumble, attack_animation, pulltoggle, credits, jingle, hear_voicesound) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",\
|
||||
ckey, ooccolor, lastchangelog, UI_style, default_slot, toggles, UI_style_color, UI_style_alpha, warns, warnbans, randomslot, volume, usewmp, special_popup, usenanoui, tooltips, progress_bars, space_parallax, space_dust, parallax_speed, stumble, attack_animation, pulltoggle, credits, jingle, hear_voicesound)
|
||||
q.Add("INSERT into client (ckey, ooc_color, lastchangelog, UI_style, default_slot, toggles, UI_style_color, UI_style_alpha, warns, warnbans, randomslot, volume, usewmp, special, usenanoui, tooltips, progress_bars, space_parallax, space_dust, parallax_speed, stumble, attack_animation, pulltoggle, credits, jingle, hear_voicesound, hear_instruments) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",\
|
||||
ckey, ooccolor, lastchangelog, UI_style, default_slot, toggles, UI_style_color, UI_style_alpha, warns, warnbans, randomslot, volume, usewmp, special_popup, usenanoui, tooltips, progress_bars, space_parallax, space_dust, parallax_speed, stumble, attack_animation, pulltoggle, credits, jingle, hear_voicesound, hear_instruments)
|
||||
if(!q.Execute(db))
|
||||
message_admins("Error #: [q.Error()] - [q.ErrorMsg()]")
|
||||
WARNING("Error #:[q.Error()] - [q.ErrorMsg()]")
|
||||
return 0
|
||||
else
|
||||
q.Add("UPDATE client SET ooc_color=?,lastchangelog=?,UI_style=?,default_slot=?,toggles=?,UI_style_color=?,UI_style_alpha=?,warns=?,warnbans=?,randomslot=?,volume=?,usewmp=?,special=?,usenanoui=?,tooltips=?,progress_bars=?,space_parallax=?,space_dust=?,parallax_speed=?, stumble=?, attack_animation=?, pulltoggle=?, credits=?, jingle=?, hear_voicesound=? WHERE ckey = ?",\
|
||||
ooccolor, lastchangelog, UI_style, default_slot, toggles, UI_style_color, UI_style_alpha, warns, warnbans, randomslot, volume, usewmp, special_popup, usenanoui, tooltips, progress_bars, space_parallax, space_dust, parallax_speed, stumble, attack_animation, pulltoggle, credits, jingle, hear_voicesound, ckey)
|
||||
q.Add("UPDATE client SET ooc_color=?,lastchangelog=?,UI_style=?,default_slot=?,toggles=?,UI_style_color=?,UI_style_alpha=?,warns=?,warnbans=?,randomslot=?,volume=?,usewmp=?,special=?,usenanoui=?,tooltips=?,progress_bars=?,space_parallax=?,space_dust=?,parallax_speed=?, stumble=?, attack_animation=?, pulltoggle=?, credits=?, jingle=?, hear_voicesound=?, hear_instruments=? WHERE ckey = ?",\
|
||||
ooccolor, lastchangelog, UI_style, default_slot, toggles, UI_style_color, UI_style_alpha, warns, warnbans, randomslot, volume, usewmp, special_popup, usenanoui, tooltips, progress_bars, space_parallax, space_dust, parallax_speed, stumble, attack_animation, pulltoggle, credits, jingle, hear_voicesound, hear_instruments, ckey)
|
||||
if(!q.Execute(db))
|
||||
message_admins("Error #: [q.Error()] - [q.ErrorMsg()]")
|
||||
WARNING("Error #:[q.Error()] - [q.ErrorMsg()]")
|
||||
@@ -259,6 +260,7 @@
|
||||
S["credits"] << credits
|
||||
S["jingle"] << jingle
|
||||
S["hear_voicesound"]<< hear_voicesound
|
||||
S["hear_instruments"]<< hear_instruments
|
||||
return 1
|
||||
|
||||
//saving volume changes
|
||||
|
||||
Reference in New Issue
Block a user