diff --git a/Content.Client/Configurable/UI/ConfigurationMenu.cs b/Content.Client/Configurable/UI/ConfigurationMenu.cs index dc1e939eba..483482dad1 100644 --- a/Content.Client/Configurable/UI/ConfigurationMenu.cs +++ b/Content.Client/Configurable/UI/ConfigurationMenu.cs @@ -92,7 +92,7 @@ namespace Content.Client.Configurable.UI var input = new LineEdit { Name = field.Key + "-input", - Text = field.Value, + Text = field.Value ?? "", IsValid = Validate, HorizontalExpand = true, SizeFlagsStretchRatio = .8f diff --git a/Content.Shared/Configurable/ConfigurationComponent.cs b/Content.Shared/Configurable/ConfigurationComponent.cs index 57809e5869..51399ce914 100644 --- a/Content.Shared/Configurable/ConfigurationComponent.cs +++ b/Content.Shared/Configurable/ConfigurationComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Configurable public sealed class ConfigurationComponent : Component { [DataField("config")] - public readonly Dictionary Config = new(); + public readonly Dictionary Config = new(); [DataField("qualityNeeded", customTypeSerializer: typeof(PrototypeIdSerializer))] public string QualityNeeded = "Pulsing"; @@ -21,9 +21,9 @@ namespace Content.Shared.Configurable [Serializable, NetSerializable] public sealed class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState { - public Dictionary Config { get; } + public Dictionary Config { get; } - public ConfigurationBoundUserInterfaceState(Dictionary config) + public ConfigurationBoundUserInterfaceState(Dictionary config) { Config = config; } diff --git a/Resources/Prototypes/Entities/Structures/Piping/Disposal/units.yml b/Resources/Prototypes/Entities/Structures/Piping/Disposal/units.yml index 49955400df..471a2f53a1 100644 --- a/Resources/Prototypes/Entities/Structures/Piping/Disposal/units.yml +++ b/Resources/Prototypes/Entities/Structures/Piping/Disposal/units.yml @@ -135,6 +135,8 @@ transmitFrequencyId: MailingUnit - type: WiredNetworkConnection - type: Configuration + config: + tag: - type: Appearance - type: UserInterface interfaces: