Files
Delta-v/Content.Server/_NF/Chemistry/Components/ReagentDispenserComponent.AutoLabel.cs
T
MD360andVanessa c8b5038ccb Chem Dispenser Auto-Labeling (Frontier) (#5261)
* Auto label port

* Make it so it works/comments

* Post review changes.

* Post review change part two.

* review pt 3

* Fixed client UI from not getting updated.

---------

Co-authored-by: Vanessa <vanessalouwagie@gmail.com>
2026-01-25 10:46:12 -06:00

23 lines
646 B
C#

namespace Content.Server.Chemistry.Components;
/// <summary>
/// Frontier - Extends ReagentDispenserComponent.
///
/// Used primarily for the auto-labeling functionality.
/// </summary>
public sealed partial class ReagentDispenserComponent : Component
{
/// <summary>
/// Returns if the component's entity has the ability to auto-label.
/// </summary>
[DataField]
public bool CanAutoLabel = true;
/// <summary>
/// Returns if the entity has auto-labeling toggled on.
/// Will have no effect if <see cref="CanAutoLabel"/> is false.
/// </summary>
[ViewVariables]
public bool AutoLabelToggle = true;
}