mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Readd ability to silence touch sounds
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
data["idLink"] = (id ? text("[id.registered_name], [id.assignment]") : "--------")
|
||||
|
||||
data["useRetro"] = retro_mode
|
||||
data["touch_silent"] = touch_silent
|
||||
|
||||
data["cartridge_name"] = cartridge ? cartridge.name : ""
|
||||
data["stationTime"] = stationtime2text() //worldtime2stationtime(world.time) // Aaa which fucking one is canonical there's SO MANY
|
||||
@@ -102,6 +103,8 @@
|
||||
id_check(usr, 1)
|
||||
if("Retro")
|
||||
retro_mode = !retro_mode
|
||||
if("TouchSounds")
|
||||
touch_silent = !touch_silent
|
||||
if("Ringtone")
|
||||
return set_ringtone()
|
||||
else
|
||||
|
||||
@@ -127,6 +127,7 @@ const PDASettings = (props, context) => {
|
||||
idInserted,
|
||||
idLink,
|
||||
cartridge_name,
|
||||
touch_silent,
|
||||
} = data;
|
||||
|
||||
return (
|
||||
@@ -138,6 +139,13 @@ const PDASettings = (props, context) => {
|
||||
content={"Retro Theme"}
|
||||
onClick={() => act("Retro")} />
|
||||
</LabeledList.Item>
|
||||
<LabeledList.Item label="Touch Sounds">
|
||||
<Button
|
||||
icon="cog"
|
||||
selected={!touch_silent}
|
||||
content={touch_silent ? "Disabled" : "Enabled"}
|
||||
onClick={() => act("TouchSounds")} />
|
||||
</LabeledList.Item>
|
||||
{!!cartridge_name && (
|
||||
<LabeledList.Item label="Cartridge">
|
||||
<Button
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user