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["idLink"] = (id ? text("[id.registered_name], [id.assignment]") : "--------")
|
||||||
|
|
||||||
data["useRetro"] = retro_mode
|
data["useRetro"] = retro_mode
|
||||||
|
data["touch_silent"] = touch_silent
|
||||||
|
|
||||||
data["cartridge_name"] = cartridge ? cartridge.name : ""
|
data["cartridge_name"] = cartridge ? cartridge.name : ""
|
||||||
data["stationTime"] = stationtime2text() //worldtime2stationtime(world.time) // Aaa which fucking one is canonical there's SO MANY
|
data["stationTime"] = stationtime2text() //worldtime2stationtime(world.time) // Aaa which fucking one is canonical there's SO MANY
|
||||||
@@ -102,6 +103,8 @@
|
|||||||
id_check(usr, 1)
|
id_check(usr, 1)
|
||||||
if("Retro")
|
if("Retro")
|
||||||
retro_mode = !retro_mode
|
retro_mode = !retro_mode
|
||||||
|
if("TouchSounds")
|
||||||
|
touch_silent = !touch_silent
|
||||||
if("Ringtone")
|
if("Ringtone")
|
||||||
return set_ringtone()
|
return set_ringtone()
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ const PDASettings = (props, context) => {
|
|||||||
idInserted,
|
idInserted,
|
||||||
idLink,
|
idLink,
|
||||||
cartridge_name,
|
cartridge_name,
|
||||||
|
touch_silent,
|
||||||
} = data;
|
} = data;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -138,6 +139,13 @@ const PDASettings = (props, context) => {
|
|||||||
content={"Retro Theme"}
|
content={"Retro Theme"}
|
||||||
onClick={() => act("Retro")} />
|
onClick={() => act("Retro")} />
|
||||||
</LabeledList.Item>
|
</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 && (
|
{!!cartridge_name && (
|
||||||
<LabeledList.Item label="Cartridge">
|
<LabeledList.Item label="Cartridge">
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user