diff --git a/Content.Server/Chemistry/EntitySystems/ChemMasterSystem.cs b/Content.Server/Chemistry/EntitySystems/ChemMasterSystem.cs index c733c7215ee..448f5375560 100644 --- a/Content.Server/Chemistry/EntitySystems/ChemMasterSystem.cs +++ b/Content.Server/Chemistry/EntitySystems/ChemMasterSystem.cs @@ -32,6 +32,7 @@ public sealed class ChemMasterSystem : EntitySystem { [Dependency] private readonly PopupSystem _popupSystem = default!; [Dependency] private readonly AudioSystem _audioSystem = default!; + [Dependency] private readonly SharedAppearanceSystem _appearanceSystem = default!; // Frontier [Dependency] private readonly SharedSolutionContainerSystem _solutionContainerSystem = default!; [Dependency] private readonly ItemSlotsSystem _itemSlotsSystem = default!; [Dependency] private readonly UserInterfaceSystem _userInterfaceSystem = default!; @@ -70,6 +71,7 @@ private void UpdateUiState(Entity ent, bool updateLabel = f if (!_solutionContainerSystem.TryGetSolution(owner, SharedChemMaster.BufferSolutionName, out _, out var bufferSolution)) return; var inputContainer = _itemSlotsSystem.GetItemOrNull(owner, SharedChemMaster.InputSlotName); + _appearanceSystem.SetData(owner, ChemMasterVisualState.BeakerInserted, inputContainer.HasValue); // Frontier var outputContainer = _itemSlotsSystem.GetItemOrNull(owner, SharedChemMaster.OutputSlotName); var bufferReagents = bufferSolution.Contents; diff --git a/Content.Shared/Chemistry/SharedChemMaster.cs b/Content.Shared/Chemistry/SharedChemMaster.cs index 762131d7612..8901308d9c3 100644 --- a/Content.Shared/Chemistry/SharedChemMaster.cs +++ b/Content.Shared/Chemistry/SharedChemMaster.cs @@ -40,6 +40,12 @@ public ChemMasterSetPillTypeMessage(uint pillType) } } + [Serializable, NetSerializable] + public enum ChemMasterVisualState : byte // Frontier + { + BeakerInserted + } + [Serializable, NetSerializable] public sealed class ChemMasterReagentAmountButtonMessage : BoundUserInterfaceMessage { diff --git a/Resources/Prototypes/Entities/Structures/Machines/chem_master.yml b/Resources/Prototypes/Entities/Structures/Machines/chem_master.yml index d78ed1182cd..6855be7a8d2 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/chem_master.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/chem_master.yml @@ -11,6 +11,7 @@ snapCardinals: true layers: - state: mixer_empty + map: ["BeakerInserted"] # Frontier - state: mixer_screens shader: unshaded map: ["enum.PowerDeviceVisualLayers.Powered"] @@ -61,6 +62,10 @@ enum.PowerDeviceVisualLayers.Powered: True: { visible: true } False: { visible: false } + enum.ChemMasterVisualState.BeakerInserted: # Frontier + BeakerInserted: # Frontier + True: {state: "mixer_loaded"} # Frontier + False: {state: "mixer_empty"} # Frontier # Machine / Construction stuff - type: WiresPanel - type: Machine