From f6c33e84688375f27f1e6641c6400e1cbbfff741 Mon Sep 17 00:00:00 2001 From: FN <37689533+FireNameFN@users.noreply.github.com> Date: Mon, 2 Dec 2024 01:02:25 +0700 Subject: [PATCH] =?UTF-8?q?Revert=20"=D0=90=D0=BD=D0=B0=D0=BB=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=82=D0=BE=D1=80=20=D1=81=D0=B5=D0=BC=D1=8F=D0=BD=20?= =?UTF-8?q?=D0=B8=20=D1=80=D0=B0=D1=81=D1=82=D0=B5=D0=BD=D0=B8=D0=B9=20(#1?= =?UTF-8?q?02)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 5cda653509394dae78d10896686d89185904519c. --- .../UI/PlantAnalyzerBoundUserInterface.cs | 53 ---- .../PlantAnalyzer/UI/PlantAnalyzerWindow.xaml | 50 ---- .../UI/PlantAnalyzerWindow.xaml.cs | 203 -------------- .../Components/PlantAnalyzerComponent.cs | 33 --- .../Botany/Systems/PlantAnalyzerSystem.cs | 259 ------------------ .../PlantAnalyzerDoAfterEvent.cs | 9 - ...lantAnalyzerScannedSeedPlantInformation.cs | 93 ------- .../PlantAnalyzer/PlantAnalyzerUiKey.cs | 9 - .../plantanalyzer/plantanalyzer.ftl | 53 ---- .../plantanalyzer/plantanalyzer.ftl | 53 ---- .../objects/devices/plant_analyzer.ftl | 10 - .../VendingMachines/Inventories/nutri.yml | 1 - .../Entities/Structures/Machines/lathe.yml | 1 - .../Prototypes/Research/civilianservices.yml | 1 - .../Objects/Devices/plant_analyzer.yml | 65 ----- .../_CorvaxNext/Recipes/Lathes/botany.yml | 9 - .../_CorvaxNext/Recipes/Lathes/devices.yml | 9 - .../Devices/plant_analyzer.rsi/icon.png | Bin 2189 -> 0 bytes .../Devices/plant_analyzer.rsi/meta.json | 40 --- .../plant_analyzer.rsi/plantanalyzer.png | Bin 364 -> 0 bytes .../Devices/plant_analyzer.rsi/unlit.png | Bin 1181 -> 0 bytes 21 files changed, 951 deletions(-) delete mode 100644 Content.Client/_CorvaxNext/PlantAnalyzer/UI/PlantAnalyzerBoundUserInterface.cs delete mode 100644 Content.Client/_CorvaxNext/PlantAnalyzer/UI/PlantAnalyzerWindow.xaml delete mode 100644 Content.Client/_CorvaxNext/PlantAnalyzer/UI/PlantAnalyzerWindow.xaml.cs delete mode 100644 Content.Server/_CorvaxNext/Botany/Components/PlantAnalyzerComponent.cs delete mode 100644 Content.Server/_CorvaxNext/Botany/Systems/PlantAnalyzerSystem.cs delete mode 100644 Content.Shared/_CorvaxNext/PlantAnalyzer/PlantAnalyzerDoAfterEvent.cs delete mode 100644 Content.Shared/_CorvaxNext/PlantAnalyzer/PlantAnalyzerScannedSeedPlantInformation.cs delete mode 100644 Content.Shared/_CorvaxNext/PlantAnalyzer/PlantAnalyzerUiKey.cs delete mode 100644 Resources/Locale/en-US/_corvaxnext/plantanalyzer/plantanalyzer.ftl delete mode 100644 Resources/Locale/ru-RU/_CorvaxNext/plantanalyzer/plantanalyzer.ftl delete mode 100644 Resources/Locale/ru-RU/ss14-ru/prototypes/_corvaxnext/entities/objects/devices/plant_analyzer.ftl delete mode 100644 Resources/Prototypes/_CorvaxNext/Entities/Objects/Devices/plant_analyzer.yml delete mode 100644 Resources/Prototypes/_CorvaxNext/Recipes/Lathes/botany.yml delete mode 100644 Resources/Prototypes/_CorvaxNext/Recipes/Lathes/devices.yml delete mode 100644 Resources/Textures/_CorvaxNext/Objects/Devices/plant_analyzer.rsi/icon.png delete mode 100644 Resources/Textures/_CorvaxNext/Objects/Devices/plant_analyzer.rsi/meta.json delete mode 100644 Resources/Textures/_CorvaxNext/Objects/Devices/plant_analyzer.rsi/plantanalyzer.png delete mode 100644 Resources/Textures/_CorvaxNext/Objects/Devices/plant_analyzer.rsi/unlit.png diff --git a/Content.Client/_CorvaxNext/PlantAnalyzer/UI/PlantAnalyzerBoundUserInterface.cs b/Content.Client/_CorvaxNext/PlantAnalyzer/UI/PlantAnalyzerBoundUserInterface.cs deleted file mode 100644 index 8c8d571e7a7..00000000000 --- a/Content.Client/_CorvaxNext/PlantAnalyzer/UI/PlantAnalyzerBoundUserInterface.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Content.Shared._CorvaxNext.PlantAnalyzer; -using JetBrains.Annotations; - -namespace Content.Client._CorvaxNext.PlantAnalyzer.UI; - -[UsedImplicitly] -public sealed class PlantAnalyzerBoundUserInterface : BoundUserInterface -{ - [ViewVariables] - private PlantAnalyzerWindow? _window; - - public PlantAnalyzerBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) - { - } - - protected override void Open() - { - base.Open(); - _window = new PlantAnalyzerWindow(this) - { - Title = Loc.GetString("plant-analyzer-interface-title"), - }; - _window.OnClose += Close; - _window.OpenCenteredLeft(); - } - - protected override void ReceiveMessage(BoundUserInterfaceMessage message) - { - if (_window == null) - return; - - if (message is not PlantAnalyzerScannedSeedPlantInformation cast) - return; - _window.Populate(cast); - } - - public void AdvPressed(bool scanMode) - { - SendMessage(new PlantAnalyzerSetMode(scanMode)); - } - - protected override void Dispose(bool disposing) - { - base.Dispose(disposing); - if (!disposing) - return; - - if (_window != null) - _window.OnClose -= Close; - - _window?.Dispose(); - } -} \ No newline at end of file diff --git a/Content.Client/_CorvaxNext/PlantAnalyzer/UI/PlantAnalyzerWindow.xaml b/Content.Client/_CorvaxNext/PlantAnalyzer/UI/PlantAnalyzerWindow.xaml deleted file mode 100644 index 5405a858d89..00000000000 --- a/Content.Client/_CorvaxNext/PlantAnalyzer/UI/PlantAnalyzerWindow.xaml +++ /dev/null @@ -1,50 +0,0 @@ - - - - -