diff --git a/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs b/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs index 3ef7f0ae73..d65bda2dc1 100644 --- a/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs +++ b/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs @@ -36,10 +36,14 @@ protected override void Open() new ItemSlotButtonPressedEvent(SharedChemMaster.InputSlotName)); _window.OutputEjectButton.OnPressed += _ => SendMessage( new ItemSlotButtonPressedEvent(SharedChemMaster.OutputSlotName)); - _window.BufferTransferButton.OnPressed += _ => SendMessage( - new ChemMasterSetModeMessage(ChemMasterMode.Transfer)); + _window.BufferStorageButton.OnPressed += _ => SendMessage( + new ChemMasterSetModeMessage(ChemMasterMode.Storage)); + _window.BufferOutputButton.OnPressed += _ => SendMessage( + new ChemMasterSetModeMessage(ChemMasterMode.Output)); _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)); @@ -53,7 +57,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)); + _window.OnReagentButtonPressed += (args, button) => SendMessage(new ChemMasterReagentAmountButtonMessage(button.Id, button.Amount, button.IsBuffer, button.Origin)); } /// diff --git a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml index b1f4f5917f..4d08a2e17c 100644 --- a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml +++ b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml @@ -33,7 +33,8 @@