From 3cc79c223a243317446578982d2a4367773e5ce8 Mon Sep 17 00:00:00 2001 From: OnyxTheBrave <131422822+OnyxTheBrave@users.noreply.github.com> Date: Tue, 30 Dec 2025 15:34:54 -0600 Subject: [PATCH] Chemmaster Pill Source (#40121) * Buttons and basic internal data * The buttons DO something * it works?!! * I hate predictions * 5000 monkeys on typewritters * who let the monkeys code? * Localizations * waiter, more commits please * Not going insane (this is a lie) * last one I SWEAR * Some improvements ported from Moff * clean it up a little * one more cleanup * The chemmaster is not a mime * Fix my mistakes + address the other review * Point to what chemmaster is broken, and why it's broken * ChemMasterComponent changes * Margin for packaging source --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> --- .../UI/ChemMasterBoundUserInterface.cs | 4 + .../Chemistry/UI/ChemMasterWindow.xaml | 9 +- .../Chemistry/UI/ChemMasterWindow.xaml.cs | 49 +++++++-- .../Components/ChemMasterComponent.cs | 6 ++ .../EntitySystems/ChemMasterSystem.cs | 102 ++++++++++++++---- Content.Shared/Chemistry/SharedChemMaster.cs | 17 ++- .../components/chem-master-component.ftl | 7 ++ 7 files changed, 160 insertions(+), 34 deletions(-) diff --git a/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs b/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs index a669a8da4c..d0a9f5644c 100644 --- a/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs +++ b/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs @@ -48,6 +48,10 @@ namespace Content.Client.Chemistry.UI (uint) _window.BottleDosage.Value, _window.LabelLine)); _window.BufferSortButton.OnPressed += _ => SendMessage( new ChemMasterSortingTypeCycleMessage()); + _window.OutputBufferDraw.OnPressed += _ => SendMessage( + new ChemMasterOutputDrawSourceMessage(ChemMasterDrawSource.Internal)); + _window.OutputBeakerDraw.OnPressed += _ => SendMessage( + new ChemMasterOutputDrawSourceMessage(ChemMasterDrawSource.External)); for (uint i = 0; i < _window.PillTypeButtons.Length; i++) { diff --git a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml index 5bc640ab44..cc2a199172 100644 --- a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml +++ b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml @@ -79,10 +79,13 @@ -