From 79035cb2b8b57b2797f1f62b1208e8c8f97b32c4 Mon Sep 17 00:00:00 2001 From: FN Date: Wed, 13 Nov 2024 15:17:32 +0700 Subject: [PATCH 1/5] Done, needs testing --- .../UI/RoboticsConsoleBoundUserInterface.cs | 6 +++ .../Robotics/UI/RoboticsConsoleWindow.xaml | 5 +- .../Robotics/UI/RoboticsConsoleWindow.xaml.cs | 7 +++ .../Robotics/Systems/RoboticsConsoleSystem.cs | 35 ++++++++++++ .../Silicons/Borgs/BorgSystem.Transponder.cs | 24 ++++++++- .../Components/RoboticsConsoleComponent.cs | 5 ++ Content.Shared/Robotics/RoboticsConsoleUi.cs | 16 ++++++ .../_corvaxnext/research/technologies.ftl | 1 + .../research/components/robotics-console.ftl | 5 ++ .../Machines/Computers/computers.yml | 15 ++++++ .../Entities/Structures/Machines/lathe.yml | 13 +++++ .../Prototypes/Research/experimental.yml | 24 +++++++++ .../Recipes/Lathes/circuit_boards.yml | 54 +++++++++++++++++++ 13 files changed, 208 insertions(+), 2 deletions(-) create mode 100644 Resources/Locale/ru-RU/_corvaxnext/research/technologies.ftl create mode 100644 Resources/Prototypes/_CorvaxNext/Recipes/Lathes/circuit_boards.yml diff --git a/Content.Client/Robotics/UI/RoboticsConsoleBoundUserInterface.cs b/Content.Client/Robotics/UI/RoboticsConsoleBoundUserInterface.cs index 9a5159880f9..85770f1d97b 100644 --- a/Content.Client/Robotics/UI/RoboticsConsoleBoundUserInterface.cs +++ b/Content.Client/Robotics/UI/RoboticsConsoleBoundUserInterface.cs @@ -20,6 +20,12 @@ protected override void Open() _window = this.CreateWindow(); _window.SetEntity(Owner); + // Corvax-Next-MutableLaws-Start + _window.OnChangeLawsPressed += address => + { + SendMessage(new RoboticsConsoleChangeLawsMessage(address)); + }; + // Corvax-Next-MutableLaws-End _window.OnDisablePressed += address => { SendMessage(new RoboticsConsoleDisableMessage(address)); diff --git a/Content.Client/Robotics/UI/RoboticsConsoleWindow.xaml b/Content.Client/Robotics/UI/RoboticsConsoleWindow.xaml index a3b39787900..6d807cdddd9 100644 --- a/Content.Client/Robotics/UI/RoboticsConsoleWindow.xaml +++ b/Content.Client/Robotics/UI/RoboticsConsoleWindow.xaml @@ -30,7 +30,10 @@ -