-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace string data fields with LocId where relevant (#20883)
- Loading branch information
1 parent
ef233cf
commit 9bcf677
Showing
69 changed files
with
265 additions
and
286 deletions.
There are no files selected for viewing
39 changes: 16 additions & 23 deletions
39
Content.Client/Chemistry/Visualizers/SolutionContainerVisualsComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,45 @@ | ||
using System; | ||
using Content.Shared.Chemistry; | ||
using JetBrains.Annotations; | ||
using Robust.Client.GameObjects; | ||
using Robust.Shared.GameObjects; | ||
using Robust.Shared.IoC; | ||
using Robust.Shared.Maths; | ||
using Robust.Shared.Serialization.Manager.Attributes; | ||
using Robust.Shared.Utility; | ||
|
||
namespace Content.Client.Chemistry.Visualizers | ||
{ | ||
[RegisterComponent] | ||
public sealed partial class SolutionContainerVisualsComponent : Component | ||
{ | ||
[DataField("maxFillLevels")] | ||
[DataField] | ||
public int MaxFillLevels = 0; | ||
[DataField("fillBaseName")] | ||
[DataField] | ||
public string? FillBaseName = null; | ||
[DataField("layer")] | ||
public SolutionContainerLayers FillLayer = SolutionContainerLayers.Fill; | ||
[DataField("baseLayer")] | ||
[DataField] | ||
public SolutionContainerLayers Layer = SolutionContainerLayers.Fill; | ||
[DataField] | ||
public SolutionContainerLayers BaseLayer = SolutionContainerLayers.Base; | ||
[DataField("overlayLayer")] | ||
[DataField] | ||
public SolutionContainerLayers OverlayLayer = SolutionContainerLayers.Overlay; | ||
[DataField("changeColor")] | ||
[DataField] | ||
public bool ChangeColor = true; | ||
[DataField("emptySpriteName")] | ||
[DataField] | ||
public string? EmptySpriteName = null; | ||
[DataField("emptySpriteColor")] | ||
[DataField] | ||
public Color EmptySpriteColor = Color.White; | ||
[DataField("metamorphic")] | ||
[DataField] | ||
public bool Metamorphic = false; | ||
[DataField("metamorphicDefaultSprite")] | ||
[DataField] | ||
public SpriteSpecifier? MetamorphicDefaultSprite; | ||
[DataField("metamorphicNameFull")] | ||
public string MetamorphicNameFull = "transformable-container-component-glass"; | ||
[DataField] | ||
public LocId MetamorphicNameFull = "transformable-container-component-glass"; | ||
|
||
/// <summary> | ||
/// Which solution of the SolutionContainerManagerComponent to represent. | ||
/// If not set, will work as default. | ||
/// </summary> | ||
[DataField("solutionName")] | ||
[DataField] | ||
public string? SolutionName; | ||
|
||
[DataField("initialName")] | ||
[DataField] | ||
public string InitialName = string.Empty; | ||
|
||
[DataField("initialDescription")] | ||
[DataField] | ||
public string InitialDescription = string.Empty; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.