From ec6e06b3468f19584982cd3534861480eb157111 Mon Sep 17 00:00:00 2001 From: MetalSage Date: Mon, 23 Dec 2024 03:34:51 +0400 Subject: [PATCH] upstream fix --- .../UI/ChemMasterBoundUserInterface.cs | 10 +- .../Chemistry/UI/ChemMasterWindow.xaml | 36 +---- .../Chemistry/UI/ChemMasterWindow.xaml.cs | 39 +++--- .../Components/ChemMasterComponent.cs | 2 +- .../EntitySystems/ChemMasterSystem.cs | 123 +++--------------- .../Connection/ConnectionManager.cs | 6 +- Content.Shared/Chemistry/SharedChemMaster.cs | 39 ++---- .../_Stories/Spaf/SharedSpafSystem.cs | 20 +-- .../components/chem-master-component.ftl | 6 +- .../Structures/Machines/chem_master.yml | 5 +- 10 files changed, 79 insertions(+), 207 deletions(-) diff --git a/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs b/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs index d65bda2dc1..3ef7f0ae73 100644 --- a/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs +++ b/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs @@ -36,14 +36,10 @@ protected override void Open() new ItemSlotButtonPressedEvent(SharedChemMaster.InputSlotName)); _window.OutputEjectButton.OnPressed += _ => SendMessage( new ItemSlotButtonPressedEvent(SharedChemMaster.OutputSlotName)); - _window.BufferStorageButton.OnPressed += _ => SendMessage( - new ChemMasterSetModeMessage(ChemMasterMode.Storage)); - _window.BufferOutputButton.OnPressed += _ => SendMessage( - new ChemMasterSetModeMessage(ChemMasterMode.Output)); + _window.BufferTransferButton.OnPressed += _ => SendMessage( + new ChemMasterSetModeMessage(ChemMasterMode.Transfer)); _window.BufferDiscardButton.OnPressed += _ => SendMessage( new ChemMasterSetModeMessage(ChemMasterMode.Discard)); - _window.OutputBufferDiscardButton.OnPressed += _ => SendMessage( - new ChemMasterDiscardBufferMessage(SharedChemMaster.OutputBufferSolutionName)); _window.CreatePillButton.OnPressed += _ => SendMessage( new ChemMasterCreatePillsMessage( (uint) _window.PillDosage.Value, (uint) _window.PillNumber.Value, _window.LabelLine)); @@ -57,7 +53,7 @@ protected override void Open() _window.PillTypeButtons[i].OnPressed += _ => SendMessage(new ChemMasterSetPillTypeMessage(pillType)); } - _window.OnReagentButtonPressed += (args, button) => SendMessage(new ChemMasterReagentAmountButtonMessage(button.Id, button.Amount, button.IsBuffer, button.Origin)); + _window.OnReagentButtonPressed += (args, button) => SendMessage(new ChemMasterReagentAmountButtonMessage(button.Id, button.Amount, button.IsBuffer)); } /// diff --git a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml index 4d08a2e17c..b1f4f5917f 100644 --- a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml +++ b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml @@ -33,8 +33,7 @@