Fix setting up mailing units. (#16890)
* Fix disposal unit config * Remove redundant ui update
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Content.Client.Configurable.UI
|
|||||||
var input = new LineEdit
|
var input = new LineEdit
|
||||||
{
|
{
|
||||||
Name = field.Key + "-input",
|
Name = field.Key + "-input",
|
||||||
Text = field.Value,
|
Text = field.Value ?? "",
|
||||||
IsValid = Validate,
|
IsValid = Validate,
|
||||||
HorizontalExpand = true,
|
HorizontalExpand = true,
|
||||||
SizeFlagsStretchRatio = .8f
|
SizeFlagsStretchRatio = .8f
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace Content.Shared.Configurable
|
|||||||
public sealed class ConfigurationComponent : Component
|
public sealed class ConfigurationComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("config")]
|
[DataField("config")]
|
||||||
public readonly Dictionary<string, string> Config = new();
|
public readonly Dictionary<string, string?> Config = new();
|
||||||
|
|
||||||
[DataField("qualityNeeded", customTypeSerializer: typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
[DataField("qualityNeeded", customTypeSerializer: typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
||||||
public string QualityNeeded = "Pulsing";
|
public string QualityNeeded = "Pulsing";
|
||||||
@@ -21,9 +21,9 @@ namespace Content.Shared.Configurable
|
|||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
public sealed class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState
|
public sealed class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState
|
||||||
{
|
{
|
||||||
public Dictionary<string, string> Config { get; }
|
public Dictionary<string, string?> Config { get; }
|
||||||
|
|
||||||
public ConfigurationBoundUserInterfaceState(Dictionary<string, string> config)
|
public ConfigurationBoundUserInterfaceState(Dictionary<string, string?> config)
|
||||||
{
|
{
|
||||||
Config = config;
|
Config = config;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,6 +135,8 @@
|
|||||||
transmitFrequencyId: MailingUnit
|
transmitFrequencyId: MailingUnit
|
||||||
- type: WiredNetworkConnection
|
- type: WiredNetworkConnection
|
||||||
- type: Configuration
|
- type: Configuration
|
||||||
|
config:
|
||||||
|
tag:
|
||||||
- type: Appearance
|
- type: Appearance
|
||||||
- type: UserInterface
|
- type: UserInterface
|
||||||
interfaces:
|
interfaces:
|
||||||
|
|||||||
Reference in New Issue
Block a user