diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index f748545c26..bd85d9e010 100755 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -44,6 +44,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, var/id = 0 //ID of the computer (for server restrictions). var/sync = 1 //If sync = 0, it doesn't show up on Server Control Console + var/is_public = FALSE //Above mentions the option for public consoles. But for that, we need to remove the sync tab from the console entirely req_access = list(access_research) //Data and setting manipulation requires scientist access. diff --git a/code/modules/research/rdconsole_tgui.dm b/code/modules/research/rdconsole_tgui.dm index 24e2a33421..80f2f1167b 100644 --- a/code/modules/research/rdconsole_tgui.dm +++ b/code/modules/research/rdconsole_tgui.dm @@ -49,6 +49,7 @@ if(!locked && !busy_msg) data["info"] = list( "sync" = sync, + "is_public" = is_public, ) data["info"]["linked_destroy"] = list("present" = FALSE) diff --git a/modular_chomp/code/modules/research/rdconsole.dm b/modular_chomp/code/modules/research/rdconsole.dm index 28ae96601c..22710985a8 100644 --- a/modular_chomp/code/modules/research/rdconsole.dm +++ b/modular_chomp/code/modules/research/rdconsole.dm @@ -2,5 +2,6 @@ /obj/machinery/computer/rdconsole/public name = "Outsider R&D control console" sync = 0 + is_public = TRUE req_access = "" circuit = /obj/item/weapon/circuitboard/rdconsole/public diff --git a/tgui/packages/tgui/interfaces/ResearchConsole.jsx b/tgui/packages/tgui/interfaces/ResearchConsole.jsx index dedfa58f7f..e0f32f970a 100644 --- a/tgui/packages/tgui/interfaces/ResearchConsole.jsx +++ b/tgui/packages/tgui/interfaces/ResearchConsole.jsx @@ -699,7 +699,8 @@ const ResearchConsoleConstructor = (props) => { const ResearchConsoleSettings = (props) => { const { act, data } = useBackend(); - const { sync, linked_destroy, linked_imprinter, linked_lathe } = data.info; + const { is_public, sync, linked_destroy, linked_imprinter, linked_lathe } = + data.info; return (
@@ -721,20 +722,21 @@ const ResearchConsoleSettings = (props) => { {(props.settingsTab === 0 && ( - {(sync && ( - <> - + + + )) || ( + - - - )) || ( - - )} + ))}