From 37b1850baeb9e94138fd0be2aff74f877efd105f Mon Sep 17 00:00:00 2001 From: ShadowLarkens Date: Fri, 2 Oct 2020 22:06:32 -0700 Subject: [PATCH] Readd ability to silence touch sounds --- code/modules/pda/pda_tgui.dm | 3 +++ tgui/packages/tgui/interfaces/Pda.js | 8 ++++++++ tgui/packages/tgui/public/tgui.bundle.js | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/code/modules/pda/pda_tgui.dm b/code/modules/pda/pda_tgui.dm index cbc4813b297..6d57a6c25eb 100644 --- a/code/modules/pda/pda_tgui.dm +++ b/code/modules/pda/pda_tgui.dm @@ -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 diff --git a/tgui/packages/tgui/interfaces/Pda.js b/tgui/packages/tgui/interfaces/Pda.js index a1f52b283ac..6c4428c05b4 100644 --- a/tgui/packages/tgui/interfaces/Pda.js +++ b/tgui/packages/tgui/interfaces/Pda.js @@ -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")} /> + +