Replace ResourcePath with ResPath (#15308)

This commit is contained in:
Ygg01
2023-04-19 15:39:17 +02:00
committed by GitHub
parent 9513ea66e4
commit 71f358a027
124 changed files with 278 additions and 273 deletions

View File

@@ -58,7 +58,7 @@ namespace Content.Shared.Storage.Components
{
[DataField("mapLayers")] public readonly Dictionary<string, SharedMapLayerData> MapLayers = new();
[DataField("sprite")] public ResourcePath? RSIPath;
[DataField("sprite")] public ResPath? RSIPath;
/// <summary>
/// If this exists, shown layers will only consider entities in the given containers.

View File

@@ -146,13 +146,13 @@ public abstract class SharedEntityStorageSystem : EntitySystem
if (component.Open)
{
verb.Text = Loc.GetString("verb-common-close");
verb.Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/close.svg.192dpi.png"));
verb.Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/VerbIcons/close.svg.192dpi.png"));
}
else
{
verb.Text = Loc.GetString("verb-common-open");
verb.Icon = new SpriteSpecifier.Texture(
new ResourcePath("/Textures/Interface/VerbIcons/open.svg.192dpi.png"));
new("/Textures/Interface/VerbIcons/open.svg.192dpi.png"));
}
verb.Act = () => ToggleOpen(args.User, args.Target, component);
args.Verbs.Add(verb);