@@ -272,7 +272,7 @@ namespace Content.Client.Actions
|
|||||||
if (PlayerActions == null)
|
if (PlayerActions == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var file = new ResPath(path).ToRootedPath();
|
var file = new ResourcePath(path).ToRootedPath();
|
||||||
TextReader reader = userData
|
TextReader reader = userData
|
||||||
? _resources.UserData.OpenText(file)
|
? _resources.UserData.OpenText(file)
|
||||||
: _resources.ContentFileReadText(file);
|
: _resources.ContentFileReadText(file);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public sealed class UploadFile : IConsoleCommand
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var path = new ResPath(args[0]).ToRelativePath();
|
var path = new ResourcePath(args[0]).ToRelativePath();
|
||||||
|
|
||||||
var dialog = IoCManager.Resolve<IFileDialogManager>();
|
var dialog = IoCManager.Resolve<IFileDialogManager>();
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public sealed class UploadFolder : IConsoleCommand
|
|||||||
public string Description => Loc.GetString("uploadfolder-command-description");
|
public string Description => Loc.GetString("uploadfolder-command-description");
|
||||||
public string Help => Loc.GetString("uploadfolder-command-help");
|
public string Help => Loc.GetString("uploadfolder-command-help");
|
||||||
|
|
||||||
private static readonly ResPath BaseUploadFolderPath = new("/UploadFolder");
|
private static readonly ResourcePath BaseUploadFolderPath = new("/UploadFolder");
|
||||||
|
|
||||||
[Dependency] private IResourceManager _resourceManager = default!;
|
[Dependency] private IResourceManager _resourceManager = default!;
|
||||||
[Dependency] private IConfigurationManager _configManager = default!;
|
[Dependency] private IConfigurationManager _configManager = default!;
|
||||||
@@ -37,7 +37,7 @@ public sealed class UploadFolder : IConsoleCommand
|
|||||||
shell.WriteLine( Loc.GetString("uploadfolder-command-help"));
|
shell.WriteLine( Loc.GetString("uploadfolder-command-help"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var folderPath = new ResPath(BaseUploadFolderPath + $"/{args[0]}");
|
var folderPath = new ResourcePath(BaseUploadFolderPath + $"/{args[0]}");
|
||||||
|
|
||||||
if (!_resourceManager.UserData.Exists(folderPath.ToRootedPath()))
|
if (!_resourceManager.UserData.Exists(folderPath.ToRootedPath()))
|
||||||
{
|
{
|
||||||
@@ -63,7 +63,7 @@ public sealed class UploadFolder : IConsoleCommand
|
|||||||
var netManager = IoCManager.Resolve<INetManager>();
|
var netManager = IoCManager.Resolve<INetManager>();
|
||||||
var msg = netManager.CreateNetMessage<NetworkResourceUploadMessage>();
|
var msg = netManager.CreateNetMessage<NetworkResourceUploadMessage>();
|
||||||
|
|
||||||
msg.RelativePath = new ResPath($"{filepath.ToString().Remove(0,14)}"); //removes /UploadFolder/ from path
|
msg.RelativePath = new ResourcePath($"{filepath.ToString().Remove(0,14)}"); //removes /UploadFolder/ from path
|
||||||
msg.Data = data;
|
msg.Data = data;
|
||||||
|
|
||||||
netManager.ClientSendMessage(msg);
|
netManager.ClientSendMessage(msg);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ namespace Content.Client.Administration.Managers
|
|||||||
_netMgr.RegisterNetMessage<MsgUpdateAdminStatus>(UpdateMessageRx);
|
_netMgr.RegisterNetMessage<MsgUpdateAdminStatus>(UpdateMessageRx);
|
||||||
|
|
||||||
// Load flags for engine commands, since those don't have the attributes.
|
// Load flags for engine commands, since those don't have the attributes.
|
||||||
if (_res.TryContentFileRead(new ResPath("/clientCommandPerms.yml"), out var efs))
|
if (_res.TryContentFileRead(new ResourcePath("/clientCommandPerms.yml"), out var efs))
|
||||||
{
|
{
|
||||||
_localCommandPermissions.LoadPermissionsFromStream(efs);
|
_localCommandPermissions.LoadPermissionsFromStream(efs);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace Content.Client.Administration.Systems
|
|||||||
Verb verb = new();
|
Verb verb = new();
|
||||||
verb.Category = VerbCategory.Debug;
|
verb.Category = VerbCategory.Debug;
|
||||||
verb.Text = "View Variables";
|
verb.Text = "View Variables";
|
||||||
verb.Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/vv.svg.192dpi.png"));
|
verb.Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/vv.svg.192dpi.png"));
|
||||||
verb.Act = () => _clientConsoleHost.ExecuteCommand($"vv {args.Target}");
|
verb.Act = () => _clientConsoleHost.ExecuteCommand($"vv {args.Target}");
|
||||||
verb.ClientExclusive = true; // opening VV window is client-side. Don't ask server to run this verb.
|
verb.ClientExclusive = true; // opening VV window is client-side. Don't ask server to run this verb.
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ public sealed class KillSignSystem : EntitySystem
|
|||||||
|
|
||||||
var adj = sprite.Bounds.Height / 2 + ((1.0f/32) * 6.0f);
|
var adj = sprite.Bounds.Height / 2 + ((1.0f/32) * 6.0f);
|
||||||
|
|
||||||
var layer = sprite.AddLayer(new SpriteSpecifier.Rsi(new ResPath("Objects/Misc/killsign.rsi"), "sign"));
|
var layer = sprite.AddLayer(new SpriteSpecifier.Rsi(new ResourcePath("Objects/Misc/killsign.rsi"), "sign"));
|
||||||
sprite.LayerMapSet(KillSignKey.Key, layer);
|
sprite.LayerMapSet(KillSignKey.Key, layer);
|
||||||
|
|
||||||
sprite.LayerSetOffset(layer, new Vector2(0.0f, adj));
|
sprite.LayerSetOffset(layer, new Vector2(0.0f, adj));
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace Content.Client.AirlockPainter
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
RSIResource doorRsi = _resourceCache.GetResource<RSIResource>(TextureRoot / new ResPath(iconPath));
|
RSIResource doorRsi = _resourceCache.GetResource<RSIResource>(TextureRoot / new ResourcePath(iconPath));
|
||||||
if (!doorRsi.RSI.TryGetState("closed", out var icon))
|
if (!doorRsi.RSI.TryGetState("closed", out var icon))
|
||||||
{
|
{
|
||||||
Entries.Add(new AirlockPainterEntry(style, null));
|
Entries.Add(new AirlockPainterEntry(style, null));
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public sealed class FliesSystem : EntitySystem
|
|||||||
if (sprite.LayerMapTryGet(FliesKey.Key, out var _))
|
if (sprite.LayerMapTryGet(FliesKey.Key, out var _))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var layer = sprite.AddLayer(new SpriteSpecifier.Rsi(new ("Objects/Misc/flies.rsi"), "flies"));
|
var layer = sprite.AddLayer(new SpriteSpecifier.Rsi(new ResourcePath("Objects/Misc/flies.rsi"), "flies"));
|
||||||
sprite.LayerMapSet(FliesKey.Key, layer);
|
sprite.LayerMapSet(FliesKey.Key, layer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ namespace Content.Client.Atmos.Overlays
|
|||||||
SpriteSpecifier overlay;
|
SpriteSpecifier overlay;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(gasPrototype.GasOverlaySprite) && !string.IsNullOrEmpty(gasPrototype.GasOverlayState))
|
if (!string.IsNullOrEmpty(gasPrototype.GasOverlaySprite) && !string.IsNullOrEmpty(gasPrototype.GasOverlayState))
|
||||||
overlay = new SpriteSpecifier.Rsi(new (gasPrototype.GasOverlaySprite), gasPrototype.GasOverlayState);
|
overlay = new SpriteSpecifier.Rsi(new ResourcePath(gasPrototype.GasOverlaySprite), gasPrototype.GasOverlayState);
|
||||||
else if (!string.IsNullOrEmpty(gasPrototype.GasOverlayTexture))
|
else if (!string.IsNullOrEmpty(gasPrototype.GasOverlayTexture))
|
||||||
overlay = new SpriteSpecifier.Texture(new (gasPrototype.GasOverlayTexture));
|
overlay = new SpriteSpecifier.Texture(new ResourcePath(gasPrototype.GasOverlayTexture));
|
||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ namespace Content.Client.Audio
|
|||||||
string key;
|
string key;
|
||||||
|
|
||||||
if (ambientComp.Sound is SoundPathSpecifier path)
|
if (ambientComp.Sound is SoundPathSpecifier path)
|
||||||
key = path.Path.ToString();
|
key = path.Path?.ToString() ?? string.Empty;
|
||||||
else
|
else
|
||||||
key = ((SoundCollectionSpecifier) ambientComp.Sound).Collection ?? string.Empty;
|
key = ((SoundCollectionSpecifier) ambientComp.Sound).Collection ?? string.Empty;
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace Content.Client.Changelog
|
|||||||
NewChangelogEntries = false;
|
NewChangelogEntries = false;
|
||||||
NewChangelogEntriesChanged?.Invoke();
|
NewChangelogEntriesChanged?.Invoke();
|
||||||
|
|
||||||
using var sw = _resource.UserData.OpenWriteText(new ($"/changelog_last_seen_{_configManager.GetCVar(CCVars.ServerId)}"));
|
using var sw = _resource.UserData.OpenWriteText(new ResourcePath($"/changelog_last_seen_{_configManager.GetCVar(CCVars.ServerId)}"));
|
||||||
|
|
||||||
sw.Write(MaxId.ToString());
|
sw.Write(MaxId.ToString());
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,7 @@ namespace Content.Client.Changelog
|
|||||||
|
|
||||||
MaxId = changelog.Max(c => c.Id);
|
MaxId = changelog.Max(c => c.Id);
|
||||||
|
|
||||||
var path = new ResPath($"/changelog_last_seen_{_configManager.GetCVar(CCVars.ServerId)}");
|
var path = new ResourcePath($"/changelog_last_seen_{_configManager.GetCVar(CCVars.ServerId)}");
|
||||||
if(_resource.UserData.TryReadAllText(path, out var lastReadIdText))
|
if(_resource.UserData.TryReadAllText(path, out var lastReadIdText))
|
||||||
{
|
{
|
||||||
LastReadId = int.Parse(lastReadIdText);
|
LastReadId = int.Parse(lastReadIdText);
|
||||||
@@ -75,7 +75,7 @@ namespace Content.Client.Changelog
|
|||||||
{
|
{
|
||||||
return Task.Run(() =>
|
return Task.Run(() =>
|
||||||
{
|
{
|
||||||
var yamlData = _resource.ContentFileReadYaml(new ("/Changelog/Changelog.yml"));
|
var yamlData = _resource.ContentFileReadYaml(new ResourcePath("/Changelog/Changelog.yml"));
|
||||||
|
|
||||||
if (yamlData.Documents.Count == 0)
|
if (yamlData.Documents.Count == 0)
|
||||||
return new List<ChangelogEntry>();
|
return new List<ChangelogEntry>();
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ namespace Content.Client.Changelog
|
|||||||
|
|
||||||
return new TextureRect
|
return new TextureRect
|
||||||
{
|
{
|
||||||
Texture = _resourceCache.GetTexture(new ResPath($"/Textures/Interface/Changelog/{file}")),
|
Texture = _resourceCache.GetTexture(new ResourcePath($"/Textures/Interface/Changelog/{file}")),
|
||||||
VerticalAlignment = VAlignment.Top,
|
VerticalAlignment = VAlignment.Top,
|
||||||
TextureScale = (0.5f, 0.5f),
|
TextureScale = (0.5f, 0.5f),
|
||||||
Margin = new Thickness(2, 4, 6, 2),
|
Margin = new Thickness(2, 4, 6, 2),
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace Content.Client.Chemistry.UI
|
|||||||
|
|
||||||
// Pill type selection buttons, in total there are 20 pills.
|
// Pill type selection buttons, in total there are 20 pills.
|
||||||
// Pill rsi file should have states named as pill1, pill2, and so on.
|
// Pill rsi file should have states named as pill1, pill2, and so on.
|
||||||
var resourcePath = new ResPath(PillsRsiPath);
|
var resourcePath = new ResourcePath(PillsRsiPath);
|
||||||
var pillTypeGroup = new ButtonGroup();
|
var pillTypeGroup = new ButtonGroup();
|
||||||
PillTypeButtons = new Button[20];
|
PillTypeButtons = new Button[20];
|
||||||
for (uint i = 0; i < PillTypeButtons.Length; i++)
|
for (uint i = 0; i < PillTypeButtons.Length; i++)
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ namespace Content.Client.Credits
|
|||||||
|
|
||||||
private IEnumerable<PatronEntry> LoadPatrons()
|
private IEnumerable<PatronEntry> LoadPatrons()
|
||||||
{
|
{
|
||||||
var yamlStream = _resourceManager.ContentFileReadYaml(new ("/Credits/Patrons.yml"));
|
var yamlStream = _resourceManager.ContentFileReadYaml(new ResourcePath("/Credits/Patrons.yml"));
|
||||||
var sequence = (YamlSequenceNode) yamlStream.Documents[0].RootNode;
|
var sequence = (YamlSequenceNode) yamlStream.Documents[0].RootNode;
|
||||||
|
|
||||||
return sequence
|
return sequence
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ public sealed partial class CrewManifestUi : DefaultWindow
|
|||||||
|
|
||||||
AddChild(gridContainer);
|
AddChild(gridContainer);
|
||||||
|
|
||||||
var path = new ResPath("/Textures/Interface/Misc/job_icons.rsi");
|
var path = new ResourcePath("/Textures/Interface/Misc/job_icons.rsi");
|
||||||
cache.TryGetResource(path, out RSIResource? rsi);
|
cache.TryGetResource(path, out RSIResource? rsi);
|
||||||
|
|
||||||
foreach (var entry in entries)
|
foreach (var entry in entries)
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ public sealed class DamageVisualsSystem : VisualizerSystem<DamageVisualsComponen
|
|||||||
{
|
{
|
||||||
var newLayer = spriteComponent.AddLayer(
|
var newLayer = spriteComponent.AddLayer(
|
||||||
new SpriteSpecifier.Rsi(
|
new SpriteSpecifier.Rsi(
|
||||||
new (sprite.Sprite), state
|
new ResourcePath(sprite.Sprite), state
|
||||||
), index);
|
), index);
|
||||||
spriteComponent.LayerMapSet(mapKey, newLayer);
|
spriteComponent.LayerMapSet(mapKey, newLayer);
|
||||||
if (sprite.Color != null)
|
if (sprite.Color != null)
|
||||||
@@ -461,7 +461,7 @@ public sealed class DamageVisualsSystem : VisualizerSystem<DamageVisualsComponen
|
|||||||
threshold = damageVisComp.Thresholds[1];
|
threshold = damageVisComp.Thresholds[1];
|
||||||
spriteLayer = spriteComponent.AddLayer(
|
spriteLayer = spriteComponent.AddLayer(
|
||||||
new SpriteSpecifier.Rsi(
|
new SpriteSpecifier.Rsi(
|
||||||
new (sprite.Sprite),
|
new ResourcePath(sprite.Sprite),
|
||||||
$"{statePrefix}_{threshold}"
|
$"{statePrefix}_{threshold}"
|
||||||
),
|
),
|
||||||
spriteLayer);
|
spriteLayer);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ public sealed class DoAfterOverlay : Overlay
|
|||||||
_timing = timing;
|
_timing = timing;
|
||||||
_transform = _entManager.EntitySysManager.GetEntitySystem<SharedTransformSystem>();
|
_transform = _entManager.EntitySysManager.GetEntitySystem<SharedTransformSystem>();
|
||||||
_meta = _entManager.EntitySysManager.GetEntitySystem<MetaDataSystem>();
|
_meta = _entManager.EntitySysManager.GetEntitySystem<MetaDataSystem>();
|
||||||
var sprite = new SpriteSpecifier.Rsi(new ("/Textures/Interface/Misc/progress_bar.rsi"), "icon");
|
var sprite = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Interface/Misc/progress_bar.rsi"), "icon");
|
||||||
_barTexture = _entManager.EntitySysManager.GetEntitySystem<SpriteSystem>().Frame0(sprite);
|
_barTexture = _entManager.EntitySysManager.GetEntitySystem<SpriteSystem>().Frame0(sprite);
|
||||||
|
|
||||||
_shader = protoManager.Index<ShaderPrototype>("unshaded").Instance();
|
_shader = protoManager.Index<ShaderPrototype>("unshaded").Instance();
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ namespace Content.Client.Examine
|
|||||||
// Center it on the entity if they use the verb instead.
|
// Center it on the entity if they use the verb instead.
|
||||||
verb.Act = () => DoExamine(args.Target, false);
|
verb.Act = () => DoExamine(args.Target, false);
|
||||||
verb.Text = Loc.GetString("examine-verb-name");
|
verb.Text = Loc.GetString("examine-verb-name");
|
||||||
verb.Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/examine.svg.192dpi.png"));
|
verb.Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/examine.svg.192dpi.png"));
|
||||||
verb.ShowOnExamineTooltip = false;
|
verb.ShowOnExamineTooltip = false;
|
||||||
verb.ClientExclusive = true;
|
verb.ClientExclusive = true;
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Content.Client.Ghost
|
|||||||
|
|
||||||
public InstantAction ToggleLightingAction = new()
|
public InstantAction ToggleLightingAction = new()
|
||||||
{
|
{
|
||||||
Icon = new SpriteSpecifier.Texture(new ("Interface/VerbIcons/light.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("Interface/VerbIcons/light.svg.192dpi.png")),
|
||||||
DisplayName = "ghost-gui-toggle-lighting-manager-name",
|
DisplayName = "ghost-gui-toggle-lighting-manager-name",
|
||||||
Description = "ghost-gui-toggle-lighting-manager-desc",
|
Description = "ghost-gui-toggle-lighting-manager-desc",
|
||||||
UserPopup = "ghost-gui-toggle-lighting-manager-popup",
|
UserPopup = "ghost-gui-toggle-lighting-manager-popup",
|
||||||
@@ -24,7 +24,7 @@ namespace Content.Client.Ghost
|
|||||||
|
|
||||||
public InstantAction ToggleFoVAction = new()
|
public InstantAction ToggleFoVAction = new()
|
||||||
{
|
{
|
||||||
Icon = new SpriteSpecifier.Texture(new ("Interface/VerbIcons/vv.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("Interface/VerbIcons/vv.svg.192dpi.png")),
|
||||||
DisplayName = "ghost-gui-toggle-fov-name",
|
DisplayName = "ghost-gui-toggle-fov-name",
|
||||||
Description = "ghost-gui-toggle-fov-desc",
|
Description = "ghost-gui-toggle-fov-desc",
|
||||||
UserPopup = "ghost-gui-toggle-fov-popup",
|
UserPopup = "ghost-gui-toggle-fov-popup",
|
||||||
@@ -35,7 +35,7 @@ namespace Content.Client.Ghost
|
|||||||
|
|
||||||
public InstantAction ToggleGhostsAction = new()
|
public InstantAction ToggleGhostsAction = new()
|
||||||
{
|
{
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("Mobs/Ghosts/ghost_human.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("Mobs/Ghosts/ghost_human.rsi"), "icon"),
|
||||||
DisplayName = "ghost-gui-toggle-ghost-visibility-name",
|
DisplayName = "ghost-gui-toggle-ghost-visibility-name",
|
||||||
Description = "ghost-gui-toggle-ghost-visibility-desc",
|
Description = "ghost-gui-toggle-ghost-visibility-desc",
|
||||||
UserPopup = "ghost-gui-toggle-ghost-visibility-popup",
|
UserPopup = "ghost-gui-toggle-ghost-visibility-popup",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ public class GuideEntry
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The file containing the contents of this guide.
|
/// The file containing the contents of this guide.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("text", required: true)] public ResPath Text = default!;
|
[DataField("text", required: true)] public ResourcePath Text = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The unique id for this guide.
|
/// The unique id for this guide.
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public sealed class GuidebookSystem : EntitySystem
|
|||||||
args.Verbs.Add(new()
|
args.Verbs.Add(new()
|
||||||
{
|
{
|
||||||
Text = Loc.GetString("guide-help-verb"),
|
Text = Loc.GetString("guide-help-verb"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/information.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/information.svg.192dpi.png")),
|
||||||
Act = () => OnGuidebookOpen?.Invoke(component.Guides, null, null, component.IncludeChildren, component.Guides[0]),
|
Act = () => OnGuidebookOpen?.Invoke(component.Guides, null, null, component.IncludeChildren, component.Guides[0]),
|
||||||
ClientExclusive = true,
|
ClientExclusive = true,
|
||||||
CloseMenu = true
|
CloseMenu = true
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ namespace Content.Client.LateJoin
|
|||||||
Stretch = TextureRect.StretchMode.KeepCentered
|
Stretch = TextureRect.StretchMode.KeepCentered
|
||||||
};
|
};
|
||||||
|
|
||||||
var specifier = new SpriteSpecifier.Rsi(new ("/Textures/Interface/Misc/job_icons.rsi"), prototype.Icon);
|
var specifier = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Interface/Misc/job_icons.rsi"), prototype.Icon);
|
||||||
icon.Texture = _sprites.Frame0(specifier);
|
icon.Texture = _sprites.Frame0(specifier);
|
||||||
jobSelector.AddChild(icon);
|
jobSelector.AddChild(icon);
|
||||||
|
|
||||||
@@ -262,7 +262,7 @@ namespace Content.Client.LateJoin
|
|||||||
{
|
{
|
||||||
TextureScale = (0.4f, 0.4f),
|
TextureScale = (0.4f, 0.4f),
|
||||||
Stretch = TextureRect.StretchMode.KeepCentered,
|
Stretch = TextureRect.StretchMode.KeepCentered,
|
||||||
Texture = _sprites.Frame0(new SpriteSpecifier.Texture(new ("/Textures/Interface/Nano/lock.svg.192dpi.png"))),
|
Texture = _sprites.Frame0(new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/Nano/lock.svg.192dpi.png"))),
|
||||||
HorizontalExpand = true,
|
HorizontalExpand = true,
|
||||||
HorizontalAlignment = HAlignment.Right,
|
HorizontalAlignment = HAlignment.Right,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -17,12 +17,12 @@ public sealed partial class MappingSystem : EntitySystem
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The icon to use for space tiles.
|
/// The icon to use for space tiles.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly SpriteSpecifier _spaceIcon = new SpriteSpecifier.Texture(new ("Tiles/cropped_parallax.png"));
|
private readonly SpriteSpecifier _spaceIcon = new SpriteSpecifier.Texture(new ResourcePath("Tiles/cropped_parallax.png"));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The icon to use for entity-eraser.
|
/// The icon to use for entity-eraser.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly SpriteSpecifier _deleteIcon = new SpriteSpecifier.Texture(new ("Interface/VerbIcons/delete.svg.192dpi.png"));
|
private readonly SpriteSpecifier _deleteIcon = new SpriteSpecifier.Texture(new ResourcePath("Interface/VerbIcons/delete.svg.192dpi.png"));
|
||||||
|
|
||||||
public string DefaultMappingActions = "/mapping_actions.yml";
|
public string DefaultMappingActions = "/mapping_actions.yml";
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ public sealed partial class MappingSystem : EntitySystem
|
|||||||
|
|
||||||
var tileIcon = contentTileDef.IsSpace
|
var tileIcon = contentTileDef.IsSpace
|
||||||
? _spaceIcon
|
? _spaceIcon
|
||||||
: new SpriteSpecifier.Texture(contentTileDef.Sprite!.Value);
|
: new SpriteSpecifier.Texture(contentTileDef.Sprite!);
|
||||||
|
|
||||||
ev.Action = new InstantAction()
|
ev.Action = new InstantAction()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,11 +28,11 @@ namespace Content.Client.PDA
|
|||||||
|
|
||||||
ViewContainer.OnChildAdded += control => control.Visible = false;
|
ViewContainer.OnChildAdded += control => control.Visible = false;
|
||||||
|
|
||||||
HomeButton.IconTexture = new SpriteSpecifier.Texture(new ("/Textures/Interface/home.png"));
|
HomeButton.IconTexture = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/home.png"));
|
||||||
FlashLightToggleButton.IconTexture = new SpriteSpecifier.Texture(new ("/Textures/Interface/light.png"));
|
FlashLightToggleButton.IconTexture = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/light.png"));
|
||||||
EjectPenButton.IconTexture = new SpriteSpecifier.Texture(new ("/Textures/Interface/pencil.png"));
|
EjectPenButton.IconTexture = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/pencil.png"));
|
||||||
EjectIdButton.IconTexture = new SpriteSpecifier.Texture(new ("/Textures/Interface/eject.png"));
|
EjectIdButton.IconTexture = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/eject.png"));
|
||||||
ProgramCloseButton.IconTexture = new SpriteSpecifier.Texture(new ("/Textures/Interface/Nano/cross.svg.png"));
|
ProgramCloseButton.IconTexture = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/Nano/cross.svg.png"));
|
||||||
|
|
||||||
|
|
||||||
HomeButton.OnPressed += _ => ToHomeScreen();
|
HomeButton.OnPressed += _ => ToHomeScreen();
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public sealed class GeneratedParallaxTextureSource : IParallaxTextureSource
|
|||||||
/// In client resources.
|
/// In client resources.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("configPath")]
|
[DataField("configPath")]
|
||||||
public ResPath ParallaxConfigPath { get; } = new("/parallax_config.toml");
|
public ResourcePath ParallaxConfigPath { get; } = new("/parallax_config.toml");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ID for debugging, caching, and so forth.
|
/// ID for debugging, caching, and so forth.
|
||||||
@@ -37,13 +37,13 @@ public sealed class GeneratedParallaxTextureSource : IParallaxTextureSource
|
|||||||
/// Cached path.
|
/// Cached path.
|
||||||
/// In user directory.
|
/// In user directory.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private ResPath ParallaxCachedImagePath => new($"/parallax_{Identifier}cache.png");
|
private ResourcePath ParallaxCachedImagePath => new($"/parallax_{Identifier}cache.png");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Old parallax config path (for checking for parallax updates).
|
/// Old parallax config path (for checking for parallax updates).
|
||||||
/// In user directory.
|
/// In user directory.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private ResPath PreviousParallaxConfigPath => new($"/parallax_{Identifier}config_old");
|
private ResourcePath PreviousParallaxConfigPath => new($"/parallax_{Identifier}config_old");
|
||||||
|
|
||||||
async Task<Texture> IParallaxTextureSource.GenerateTexture(CancellationToken cancel)
|
async Task<Texture> IParallaxTextureSource.GenerateTexture(CancellationToken cancel)
|
||||||
{
|
{
|
||||||
@@ -113,7 +113,7 @@ public sealed class GeneratedParallaxTextureSource : IParallaxTextureSource
|
|||||||
for (var i = 0; i < debugImages!.Count; i++)
|
for (var i = 0; i < debugImages!.Count; i++)
|
||||||
{
|
{
|
||||||
var debugImage = debugImages[i];
|
var debugImage = debugImages[i];
|
||||||
using var debugImageStream = StaticIoC.ResC.UserData.OpenWrite(new ResPath($"/parallax_{Identifier}debug_{i}.png"));
|
using var debugImageStream = StaticIoC.ResC.UserData.OpenWrite(new ResourcePath($"/parallax_{Identifier}debug_{i}.png"));
|
||||||
debugImage.SaveAsPng(debugImageStream);
|
debugImage.SaveAsPng(debugImageStream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ public sealed class ImageParallaxTextureSource : IParallaxTextureSource
|
|||||||
/// Texture path.
|
/// Texture path.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("path", required: true)]
|
[DataField("path", required: true)]
|
||||||
public ResPath Path { get; } = default!;
|
public ResourcePath Path { get; } = default!;
|
||||||
|
|
||||||
Task<Texture> IParallaxTextureSource.GenerateTexture(CancellationToken cancel)
|
Task<Texture> IParallaxTextureSource.GenerateTexture(CancellationToken cancel)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public sealed class PointingSystem : SharedPointingSystem
|
|||||||
Verb verb = new()
|
Verb verb = new()
|
||||||
{
|
{
|
||||||
Text = Loc.GetString("pointing-verb-get-data-text"),
|
Text = Loc.GetString("pointing-verb-get-data-text"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/point.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/point.svg.192dpi.png")),
|
||||||
ClientExclusive = true,
|
ClientExclusive = true,
|
||||||
Act = () => RaiseNetworkEvent(new PointingAttemptEvent(args.Target))
|
Act = () => RaiseNetworkEvent(new PointingAttemptEvent(args.Target))
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1213,7 +1213,7 @@ namespace Content.Client.Preferences.UI
|
|||||||
|
|
||||||
if (job.Icon != null)
|
if (job.Icon != null)
|
||||||
{
|
{
|
||||||
var specifier = new SpriteSpecifier.Rsi(new ("/Textures/Interface/Misc/job_icons.rsi"),
|
var specifier = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Interface/Misc/job_icons.rsi"),
|
||||||
job.Icon);
|
job.Icon);
|
||||||
icon.Texture = specifier.Frame0();
|
icon.Texture = specifier.Frame0();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,27 +8,27 @@ namespace Content.Client.Resources
|
|||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public static class ResourceCacheExtensions
|
public static class ResourceCacheExtensions
|
||||||
{
|
{
|
||||||
public static Texture GetTexture(this IResourceCache cache, ResPath path)
|
public static Texture GetTexture(this IResourceCache cache, ResourcePath path)
|
||||||
{
|
{
|
||||||
return cache.GetResource<TextureResource>(path);
|
return cache.GetResource<TextureResource>(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Texture GetTexture(this IResourceCache cache, string path)
|
public static Texture GetTexture(this IResourceCache cache, string path)
|
||||||
{
|
{
|
||||||
return GetTexture(cache, new ResPath(path));
|
return GetTexture(cache, new ResourcePath(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Font GetFont(this IResourceCache cache, ResPath path, int size)
|
public static Font GetFont(this IResourceCache cache, ResourcePath path, int size)
|
||||||
{
|
{
|
||||||
return new VectorFont(cache.GetResource<FontResource>(path), size);
|
return new VectorFont(cache.GetResource<FontResource>(path), size);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Font GetFont(this IResourceCache cache, string path, int size)
|
public static Font GetFont(this IResourceCache cache, string path, int size)
|
||||||
{
|
{
|
||||||
return cache.GetFont(new ResPath(path), size);
|
return cache.GetFont(new ResourcePath(path), size);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Font GetFont(this IResourceCache cache, ResPath[] path, int size)
|
public static Font GetFont(this IResourceCache cache, ResourcePath[] path, int size)
|
||||||
{
|
{
|
||||||
var fs = new Font[path.Length];
|
var fs = new Font[path.Length];
|
||||||
for (var i = 0; i < path.Length; i++)
|
for (var i = 0; i < path.Length; i++)
|
||||||
@@ -39,9 +39,9 @@ namespace Content.Client.Resources
|
|||||||
|
|
||||||
public static Font GetFont(this IResourceCache cache, string[] path, int size)
|
public static Font GetFont(this IResourceCache cache, string[] path, int size)
|
||||||
{
|
{
|
||||||
var rp = new ResPath[path.Length];
|
var rp = new ResourcePath[path.Length];
|
||||||
for (var i = 0; i < path.Length; i++)
|
for (var i = 0; i < path.Length; i++)
|
||||||
rp[i] = new ResPath(path[i]);
|
rp[i] = new ResourcePath(path[i]);
|
||||||
|
|
||||||
return cache.GetFont(rp, size);
|
return cache.GetFont(rp, size);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace Content.Client.Screenshot
|
|||||||
{
|
{
|
||||||
internal sealed class ScreenshotHook : IScreenshotHook
|
internal sealed class ScreenshotHook : IScreenshotHook
|
||||||
{
|
{
|
||||||
private static readonly ResPath BaseScreenshotPath = new("/Screenshots");
|
private static readonly ResourcePath BaseScreenshotPath = new("/Screenshots");
|
||||||
|
|
||||||
[Dependency] private readonly IInputManager _inputManager = default!;
|
[Dependency] private readonly IInputManager _inputManager = default!;
|
||||||
[Dependency] private readonly IClyde _clyde = default!;
|
[Dependency] private readonly IClyde _clyde = default!;
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ namespace Content.Client.Stack
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("composite")] private bool _isComposite;
|
[DataField("composite")] private bool _isComposite;
|
||||||
|
|
||||||
[DataField("sprite")] private ResPath? _spritePath;
|
[DataField("sprite")] private ResourcePath? _spritePath;
|
||||||
|
|
||||||
[Obsolete("Subscribe to your component being initialised instead.")]
|
[Obsolete("Subscribe to your component being initialised instead.")]
|
||||||
public override void InitializeEntity(EntityUid entity)
|
public override void InitializeEntity(EntityUid entity)
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public sealed class ItemMapperSystem : SharedItemMapperSystem
|
|||||||
foreach (var sprite in component.SpriteLayers)
|
foreach (var sprite in component.SpriteLayers)
|
||||||
{
|
{
|
||||||
spriteComponent.LayerMapReserveBlank(sprite);
|
spriteComponent.LayerMapReserveBlank(sprite);
|
||||||
spriteComponent.LayerSetSprite(sprite, new SpriteSpecifier.Rsi(component.RSIPath!.Value, sprite));
|
spriteComponent.LayerSetSprite(sprite, new SpriteSpecifier.Rsi(component.RSIPath!, sprite));
|
||||||
spriteComponent.LayerSetVisible(sprite, false);
|
spriteComponent.LayerSetVisible(sprite, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ public sealed class TextScreenSystem : VisualizerSystem<TextScreenVisualsCompone
|
|||||||
{
|
{
|
||||||
sprite.LayerMapReserveBlank(TextScreenLayerMapKey + i);
|
sprite.LayerMapReserveBlank(TextScreenLayerMapKey + i);
|
||||||
component.LayerStatesToDraw.Add(TextScreenLayerMapKey + i, null);
|
component.LayerStatesToDraw.Add(TextScreenLayerMapKey + i, null);
|
||||||
sprite.LayerSetRSI(TextScreenLayerMapKey + i, new ResPath("Effects/text.rsi"));
|
sprite.LayerSetRSI(TextScreenLayerMapKey + i, new ResourcePath("Effects/text.rsi"));
|
||||||
sprite.LayerSetColor(TextScreenLayerMapKey + i, component.Color);
|
sprite.LayerSetColor(TextScreenLayerMapKey + i, component.Color);
|
||||||
sprite.LayerSetState(TextScreenLayerMapKey + i, DefaultState);
|
sprite.LayerSetState(TextScreenLayerMapKey + i, DefaultState);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public sealed class MeleeWindupOverlay : Overlay
|
|||||||
_player = playerManager;
|
_player = playerManager;
|
||||||
_melee = _entManager.EntitySysManager.GetEntitySystem<SharedMeleeWeaponSystem>();
|
_melee = _entManager.EntitySysManager.GetEntitySystem<SharedMeleeWeaponSystem>();
|
||||||
_transform = _entManager.EntitySysManager.GetEntitySystem<SharedTransformSystem>();
|
_transform = _entManager.EntitySysManager.GetEntitySystem<SharedTransformSystem>();
|
||||||
var sprite = new SpriteSpecifier.Rsi(new ("/Textures/Interface/Misc/progress_bar.rsi"), "icon");
|
var sprite = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Interface/Misc/progress_bar.rsi"), "icon");
|
||||||
_texture = _entManager.EntitySysManager.GetEntitySystem<SpriteSystem>().Frame0(sprite);
|
_texture = _entManager.EntitySysManager.GetEntitySystem<SpriteSystem>().Frame0(sprite);
|
||||||
_shader = protoManager.Index<ShaderPrototype>("unshaded").Instance();
|
_shader = protoManager.Index<ShaderPrototype>("unshaded").Instance();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace Content.IntegrationTests.Tests.GameObjects.Components
|
|||||||
var client = pairTracker.Pair.Client;
|
var client = pairTracker.Pair.Client;
|
||||||
|
|
||||||
var sResourceManager = server.ResolveDependency<IResourceManager>();
|
var sResourceManager = server.ResolveDependency<IResourceManager>();
|
||||||
var prototypePath = new ResPath("/Prototypes/");
|
var prototypePath = new ResourcePath("/Prototypes/");
|
||||||
var paths = sResourceManager.ContentFindFiles(prototypePath)
|
var paths = sResourceManager.ContentFindFiles(prototypePath)
|
||||||
.ToList()
|
.ToList()
|
||||||
.AsParallel()
|
.AsParallel()
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ namespace Content.IntegrationTests.Tests
|
|||||||
var server = pairTracker.Pair.Server;
|
var server = pairTracker.Pair.Server;
|
||||||
|
|
||||||
var resourceManager = server.ResolveDependency<IResourceManager>();
|
var resourceManager = server.ResolveDependency<IResourceManager>();
|
||||||
var mapFolder = new ResPath("/Maps");
|
var mapFolder = new ResourcePath("/Maps");
|
||||||
var maps = resourceManager
|
var maps = resourceManager
|
||||||
.ContentFindFiles(mapFolder)
|
.ContentFindFiles(mapFolder)
|
||||||
.Where(filePath => filePath.Extension == "yml" && !filePath.Filename.StartsWith(".", StringComparison.Ordinal))
|
.Where(filePath => filePath.Extension == "yml" && !filePath.Filename.StartsWith(".", StringComparison.Ordinal))
|
||||||
@@ -299,7 +299,7 @@ namespace Content.IntegrationTests.Tests
|
|||||||
|
|
||||||
var gameMaps = protoManager.EnumeratePrototypes<GameMapPrototype>().Select(o => o.MapPath).ToHashSet();
|
var gameMaps = protoManager.EnumeratePrototypes<GameMapPrototype>().Select(o => o.MapPath).ToHashSet();
|
||||||
|
|
||||||
var mapFolder = new ResPath("/Maps");
|
var mapFolder = new ResourcePath("/Maps");
|
||||||
var maps = resourceManager
|
var maps = resourceManager
|
||||||
.ContentFindFiles(mapFolder)
|
.ContentFindFiles(mapFolder)
|
||||||
.Where(filePath => filePath.Extension == "yml" && !filePath.Filename.StartsWith(".", StringComparison.Ordinal))
|
.Where(filePath => filePath.Extension == "yml" && !filePath.Filename.StartsWith(".", StringComparison.Ordinal))
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ namespace Content.IntegrationTests.Tests
|
|||||||
var xformSystem = sEntities.EntitySysManager.GetEntitySystem<SharedTransformSystem>();
|
var xformSystem = sEntities.EntitySysManager.GetEntitySystem<SharedTransformSystem>();
|
||||||
var resManager = server.ResolveDependency<IResourceManager>();
|
var resManager = server.ResolveDependency<IResourceManager>();
|
||||||
|
|
||||||
await server.WaitAssertion(() =>
|
await server.WaitPost(() =>
|
||||||
{
|
{
|
||||||
var dir = new ResPath(mapPath).Directory;
|
var dir = new ResourcePath(mapPath).Directory;
|
||||||
resManager.UserData.CreateDir(dir);
|
resManager.UserData.CreateDir(dir);
|
||||||
|
|
||||||
var mapId = mapManager.CreateMap();
|
var mapId = mapManager.CreateMap();
|
||||||
@@ -50,17 +50,14 @@ namespace Content.IntegrationTests.Tests
|
|||||||
Assert.Multiple(() => mapLoader.SaveMap(mapId, mapPath));
|
Assert.Multiple(() => mapLoader.SaveMap(mapId, mapPath));
|
||||||
Assert.Multiple(() => mapManager.DeleteMap(mapId));
|
Assert.Multiple(() => mapManager.DeleteMap(mapId));
|
||||||
});
|
});
|
||||||
|
|
||||||
await server.WaitIdleAsync();
|
await server.WaitIdleAsync();
|
||||||
|
|
||||||
await server.WaitAssertion(() =>
|
await server.WaitPost(() =>
|
||||||
{
|
{
|
||||||
Assert.Multiple(() => mapLoader.LoadMap(new MapId(10), mapPath));
|
Assert.Multiple(() => mapLoader.LoadMap(new MapId(10), mapPath));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await server.WaitIdleAsync();
|
await server.WaitIdleAsync();
|
||||||
|
|
||||||
await server.WaitAssertion(() =>
|
await server.WaitAssertion(() =>
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@@ -87,7 +84,6 @@ namespace Content.IntegrationTests.Tests
|
|||||||
Assert.That(mapGrid.GetTileRef(new Vector2i(0, 0)).Tile, Is.EqualTo(new Tile(2, (TileRenderFlag)1, 254)));
|
Assert.That(mapGrid.GetTileRef(new Vector2i(0, 0)).Tile, Is.EqualTo(new Tile(2, (TileRenderFlag)1, 254)));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
await pairTracker.CleanReturnAsync();
|
await pairTracker.CleanReturnAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,14 +43,14 @@ namespace Content.IntegrationTests.Tests
|
|||||||
string one;
|
string one;
|
||||||
string two;
|
string two;
|
||||||
|
|
||||||
var rp1 = new ResPath("/save load save 1.yml");
|
var rp1 = new ResourcePath("/save load save 1.yml");
|
||||||
await using (var stream = userData.Open(rp1, FileMode.Open))
|
await using (var stream = userData.Open(rp1, FileMode.Open))
|
||||||
using (var reader = new StreamReader(stream))
|
using (var reader = new StreamReader(stream))
|
||||||
{
|
{
|
||||||
one = await reader.ReadToEndAsync();
|
one = await reader.ReadToEndAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
var rp2 = new ResPath("/save load save 2.yml");
|
var rp2 = new ResourcePath("/save load save 2.yml");
|
||||||
await using (var stream = userData.Open(rp2, FileMode.Open))
|
await using (var stream = userData.Open(rp2, FileMode.Open))
|
||||||
using (var reader = new StreamReader(stream))
|
using (var reader = new StreamReader(stream))
|
||||||
{
|
{
|
||||||
@@ -117,13 +117,13 @@ namespace Content.IntegrationTests.Tests
|
|||||||
string one;
|
string one;
|
||||||
string two;
|
string two;
|
||||||
|
|
||||||
await using (var stream = userData.Open(new ResPath("/load save ticks save 1.yml"), FileMode.Open))
|
await using (var stream = userData.Open(new ResourcePath("/load save ticks save 1.yml"), FileMode.Open))
|
||||||
using (var reader = new StreamReader(stream))
|
using (var reader = new StreamReader(stream))
|
||||||
{
|
{
|
||||||
one = await reader.ReadToEndAsync();
|
one = await reader.ReadToEndAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
await using (var stream = userData.Open(new ResPath("/load save ticks save 2.yml"), FileMode.Open))
|
await using (var stream = userData.Open(new ResourcePath("/load save ticks save 2.yml"), FileMode.Open))
|
||||||
using (var reader = new StreamReader(stream))
|
using (var reader = new StreamReader(stream))
|
||||||
{
|
{
|
||||||
two = await reader.ReadToEndAsync();
|
two = await reader.ReadToEndAsync();
|
||||||
@@ -189,7 +189,7 @@ namespace Content.IntegrationTests.Tests
|
|||||||
});
|
});
|
||||||
|
|
||||||
await server.WaitIdleAsync();
|
await server.WaitIdleAsync();
|
||||||
await using (var stream = userData.Open(new ResPath(fileA), FileMode.Open))
|
await using (var stream = userData.Open(new ResourcePath(fileA), FileMode.Open))
|
||||||
using (var reader = new StreamReader(stream))
|
using (var reader = new StreamReader(stream))
|
||||||
{
|
{
|
||||||
yamlA = await reader.ReadToEndAsync();
|
yamlA = await reader.ReadToEndAsync();
|
||||||
@@ -210,7 +210,7 @@ namespace Content.IntegrationTests.Tests
|
|||||||
|
|
||||||
await server.WaitIdleAsync();
|
await server.WaitIdleAsync();
|
||||||
|
|
||||||
await using (var stream = userData.Open(new ResPath(fileB), FileMode.Open))
|
await using (var stream = userData.Open(new ResourcePath(fileB), FileMode.Open))
|
||||||
using (var reader = new StreamReader(stream))
|
using (var reader = new StreamReader(stream))
|
||||||
{
|
{
|
||||||
yamlB = await reader.ReadToEndAsync();
|
yamlB = await reader.ReadToEndAsync();
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace Content.Server.Abilities.Mime
|
|||||||
public InstantAction InvisibleWallAction = new()
|
public InstantAction InvisibleWallAction = new()
|
||||||
{
|
{
|
||||||
UseDelay = TimeSpan.FromSeconds(30),
|
UseDelay = TimeSpan.FromSeconds(30),
|
||||||
Icon = new SpriteSpecifier.Texture(new("Structures/Walls/solid.rsi/full.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("Structures/Walls/solid.rsi/full.png")),
|
||||||
DisplayName = "mime-invisible-wall",
|
DisplayName = "mime-invisible-wall",
|
||||||
Description = "mime-invisible-wall-desc",
|
Description = "mime-invisible-wall-desc",
|
||||||
Priority = -1,
|
Priority = -1,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public sealed class IdExaminableSystem : EntitySystem
|
|||||||
Category = VerbCategory.Examine,
|
Category = VerbCategory.Examine,
|
||||||
Disabled = !detailsRange,
|
Disabled = !detailsRange,
|
||||||
Message = Loc.GetString("id-examinable-component-verb-disabled"),
|
Message = Loc.GetString("id-examinable-component-verb-disabled"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/character.svg.192dpi.png"))
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/character.svg.192dpi.png"))
|
||||||
};
|
};
|
||||||
|
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ namespace Content.Server.Administration.Managers
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load flags for engine commands, since those don't have the attributes.
|
// Load flags for engine commands, since those don't have the attributes.
|
||||||
if (_res.TryContentFileRead(new ResPath("/engineCommandPerms.yml"), out var efs))
|
if (_res.TryContentFileRead(new ResourcePath("/engineCommandPerms.yml"), out var efs))
|
||||||
{
|
{
|
||||||
_commandPermissions.LoadPermissionsFromStream(efs);
|
_commandPermissions.LoadPermissionsFromStream(efs);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public sealed class AdminNotesSystem : EntitySystem
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("admin-notes-verb-text"),
|
Text = Loc.GetString("admin-notes-verb-text"),
|
||||||
Category = VerbCategory.Admin,
|
Category = VerbCategory.Admin,
|
||||||
Icon = new SpriteSpecifier.Texture(new ResPath("/Textures/Interface/VerbIcons/examine.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/examine.svg.192dpi.png")),
|
||||||
Act = () => _console.RemoteExecuteCommand(user, $"{OpenAdminNotesCommand.CommandName} \"{target.UserId}\""),
|
Act = () => _console.RemoteExecuteCommand(user, $"{OpenAdminNotesCommand.CommandName} \"{target.UserId}\""),
|
||||||
Impact = LogImpact.Low
|
Impact = LogImpact.Low
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Make Traitor",
|
Text = "Make Traitor",
|
||||||
Category = VerbCategory.Antag,
|
Category = VerbCategory.Antag,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ResPath("/Textures/Structures/Wallmounts/posters.rsi"), "poster5_contraband"),
|
Icon = new SpriteSpecifier.Rsi((new ResourcePath("/Textures/Structures/Wallmounts/posters.rsi")), "poster5_contraband"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
if (targetMindComp.Mind == null || targetMindComp.Mind.Session == null)
|
if (targetMindComp.Mind == null || targetMindComp.Mind.Session == null)
|
||||||
@@ -53,7 +53,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Make Zombie",
|
Text = "Make Zombie",
|
||||||
Category = VerbCategory.Antag,
|
Category = VerbCategory.Antag,
|
||||||
Icon = new SpriteSpecifier.Rsi(new("/Textures/Structures/Wallmounts/signs.rsi"), "bio"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Structures/Wallmounts/signs.rsi"), "bio"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
TryComp(args.Target, out MindComponent? mindComp);
|
TryComp(args.Target, out MindComponent? mindComp);
|
||||||
@@ -72,7 +72,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Make nuclear operative",
|
Text = "Make nuclear operative",
|
||||||
Category = VerbCategory.Antag,
|
Category = VerbCategory.Antag,
|
||||||
Icon = new SpriteSpecifier.Rsi(new("/Textures/Structures/Wallmounts/signs.rsi"), "radiation"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Structures/Wallmounts/signs.rsi"), "radiation"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
if (targetMindComp.Mind == null || targetMindComp.Mind.Session == null)
|
if (targetMindComp.Mind == null || targetMindComp.Mind.Session == null)
|
||||||
@@ -89,7 +89,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Make Pirate",
|
Text = "Make Pirate",
|
||||||
Category = VerbCategory.Antag,
|
Category = VerbCategory.Antag,
|
||||||
Icon = new SpriteSpecifier.Rsi(new("/Textures/Clothing/Head/Hats/pirate.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Clothing/Head/Hats/pirate.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
if (targetMindComp.Mind == null || targetMindComp.Mind.Session == null)
|
if (targetMindComp.Mind == null || targetMindComp.Mind.Session == null)
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Explode",
|
Text = "Explode",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/smite.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/smite.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var coords = Transform(args.Target).MapPosition;
|
var coords = Transform(args.Target).MapPosition;
|
||||||
@@ -122,7 +122,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Chess Dimension",
|
Text = "Chess Dimension",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Fun/Tabletop/chessboard.rsi"), "chessboard"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Fun/Tabletop/chessboard.rsi"), "chessboard"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_godmodeSystem.EnableGodmode(args.Target); // So they don't suffocate.
|
_godmodeSystem.EnableGodmode(args.Target); // So they don't suffocate.
|
||||||
@@ -150,7 +150,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Set Alight",
|
Text = "Set Alight",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/Alerts/Fire/fire.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/Alerts/Fire/fire.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
// Fuck you. Burn Forever.
|
// Fuck you. Burn Forever.
|
||||||
@@ -172,7 +172,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Monkeyify",
|
Text = "Monkeyify",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Mobs/Animals/monkey.rsi"), "dead"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Mobs/Animals/monkey.rsi"), "dead"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_polymorphSystem.PolymorphEntity(args.Target, "AdminMonkeySmite");
|
_polymorphSystem.PolymorphEntity(args.Target, "AdminMonkeySmite");
|
||||||
@@ -186,7 +186,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Garbage Can",
|
Text = "Garbage Can",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Structures/Piping/disposal.rsi"), "disposal"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Structures/Piping/disposal.rsi"), "disposal"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_polymorphSystem.PolymorphEntity(args.Target, "AdminDisposalsSmite");
|
_polymorphSystem.PolymorphEntity(args.Target, "AdminDisposalsSmite");
|
||||||
@@ -202,7 +202,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Lung Cancer",
|
Text = "Lung Cancer",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Mobs/Species/Human/organs.rsi"), "lung-l"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Mobs/Species/Human/organs.rsi"), "lung-l"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_diseaseSystem.TryInfect(carrier, _prototypeManager.Index<DiseasePrototype>("StageIIIALungCancer"),
|
_diseaseSystem.TryInfect(carrier, _prototypeManager.Index<DiseasePrototype>("StageIIIALungCancer"),
|
||||||
@@ -221,7 +221,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Electrocute",
|
Text = "Electrocute",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Clothing/Hands/Gloves/Color/yellow.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Clothing/Hands/Gloves/Color/yellow.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
int damageToDeal;
|
int damageToDeal;
|
||||||
@@ -266,7 +266,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Creampie",
|
Text = "Creampie",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Consumable/Food/Baked/pie.rsi"), "plain-slice"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Consumable/Food/Baked/pie.rsi"), "plain-slice"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_creamPieSystem.SetCreamPied(args.Target, creamPied, true);
|
_creamPieSystem.SetCreamPied(args.Target, creamPied, true);
|
||||||
@@ -283,7 +283,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Remove blood",
|
Text = "Remove blood",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Fluids/tomato_splat.rsi"), "puddle-1"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Fluids/tomato_splat.rsi"), "puddle-1"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_bloodstreamSystem.SpillAllSolutions(args.Target, bloodstream);
|
_bloodstreamSystem.SpillAllSolutions(args.Target, bloodstream);
|
||||||
@@ -306,7 +306,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Vomit organs",
|
Text = "Vomit organs",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Fluids/vomit_toxin.rsi"), "vomit_toxin-1"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Fluids/vomit_toxin.rsi"), "vomit_toxin-1"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_vomitSystem.Vomit(args.Target, -1000, -1000); // You feel hollow!
|
_vomitSystem.Vomit(args.Target, -1000, -1000); // You feel hollow!
|
||||||
@@ -335,7 +335,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Remove hands",
|
Text = "Remove hands",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/remove-hands.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/remove-hands.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var baseXform = Transform(args.Target);
|
var baseXform = Transform(args.Target);
|
||||||
@@ -357,7 +357,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Remove hands",
|
Text = "Remove hands",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/remove-hand.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/remove-hand.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var baseXform = Transform(args.Target);
|
var baseXform = Transform(args.Target);
|
||||||
@@ -380,7 +380,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Stomach Removal",
|
Text = "Stomach Removal",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Mobs/Species/Human/organs.rsi"), "stomach"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Mobs/Species/Human/organs.rsi"), "stomach"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
foreach (var (component, _) in _bodySystem.GetBodyOrganComponents<StomachComponent>(args.Target, body))
|
foreach (var (component, _) in _bodySystem.GetBodyOrganComponents<StomachComponent>(args.Target, body))
|
||||||
@@ -400,7 +400,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Lungs Removal",
|
Text = "Lungs Removal",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Mobs/Species/Human/organs.rsi"), "lung-r"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Mobs/Species/Human/organs.rsi"), "lung-r"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
foreach (var (component, _) in _bodySystem.GetBodyOrganComponents<LungComponent>(args.Target, body))
|
foreach (var (component, _) in _bodySystem.GetBodyOrganComponents<LungComponent>(args.Target, body))
|
||||||
@@ -423,7 +423,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Pinball",
|
Text = "Pinball",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Fun/toys.rsi"), "basketball"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Fun/toys.rsi"), "basketball"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var xform = Transform(args.Target);
|
var xform = Transform(args.Target);
|
||||||
@@ -457,7 +457,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Yeet",
|
Text = "Yeet",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/eject.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/eject.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var xform = Transform(args.Target);
|
var xform = Transform(args.Target);
|
||||||
@@ -488,7 +488,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Become Bread",
|
Text = "Become Bread",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Consumable/Food/Baked/bread.rsi"), "plain"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Consumable/Food/Baked/bread.rsi"), "plain"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_polymorphSystem.PolymorphEntity(args.Target, "AdminBreadSmite");
|
_polymorphSystem.PolymorphEntity(args.Target, "AdminBreadSmite");
|
||||||
@@ -502,7 +502,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Become Mouse",
|
Text = "Become Mouse",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Mobs/Animals/mouse.rsi"), "icon-0"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Mobs/Animals/mouse.rsi"), "icon-0"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_polymorphSystem.PolymorphEntity(args.Target, "AdminMouseSmite");
|
_polymorphSystem.PolymorphEntity(args.Target, "AdminMouseSmite");
|
||||||
@@ -518,7 +518,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Ghostkick",
|
Text = "Ghostkick",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/gavel.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/gavel.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_ghostKickManager.DoDisconnect(actorComponent.PlayerSession.ConnectedClient, "Smitten.");
|
_ghostKickManager.DoDisconnect(actorComponent.PlayerSession.ConnectedClient, "Smitten.");
|
||||||
@@ -534,7 +534,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Nyanify",
|
Text = "Nyanify",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Clothing/Head/Hats/catears.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Clothing/Head/Hats/catears.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var ears = Spawn("ClothingHeadHatCatEars", Transform(args.Target).Coordinates);
|
var ears = Spawn("ClothingHeadHatCatEars", Transform(args.Target).Coordinates);
|
||||||
@@ -551,7 +551,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Kill sign",
|
Text = "Kill sign",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Misc/killsign.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Misc/killsign.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
EnsureComp<KillSignComponent>(args.Target);
|
EnsureComp<KillSignComponent>(args.Target);
|
||||||
@@ -566,7 +566,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
Text = "Cluwne",
|
Text = "Cluwne",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
|
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Clothing/Mask/cluwne.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Clothing/Mask/cluwne.rsi"), "icon"),
|
||||||
|
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
@@ -581,7 +581,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Maid",
|
Text = "Maid",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Clothing/Uniforms/Jumpskirt/janimaid.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Clothing/Uniforms/Jumpskirt/janimaid.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
SetOutfitCommand.SetOutfit(args.Target, "JanitorMaidGear", EntityManager, (_, clothing) =>
|
SetOutfitCommand.SetOutfit(args.Target, "JanitorMaidGear", EntityManager, (_, clothing) =>
|
||||||
@@ -601,7 +601,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Anger Pointing Arrows",
|
Text = "Anger Pointing Arrows",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Interface/Misc/pointing.rsi"), "pointing"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Interface/Misc/pointing.rsi"), "pointing"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
EnsureComp<PointingArrowAngeringComponent>(args.Target);
|
EnsureComp<PointingArrowAngeringComponent>(args.Target);
|
||||||
@@ -615,7 +615,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Dust",
|
Text = "Dust",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Materials/materials.rsi"), "ash"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Materials/materials.rsi"), "ash"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
EntityManager.QueueDeleteEntity(args.Target);
|
EntityManager.QueueDeleteEntity(args.Target);
|
||||||
@@ -631,7 +631,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Buffering",
|
Text = "Buffering",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/Misc/buffering_smite_icon.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/Misc/buffering_smite_icon.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
EnsureComp<BufferingComponent>(args.Target);
|
EnsureComp<BufferingComponent>(args.Target);
|
||||||
@@ -645,7 +645,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Become Instrument",
|
Text = "Become Instrument",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Fun/Instruments/h_synthesizer.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Fun/Instruments/h_synthesizer.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_polymorphSystem.PolymorphEntity(args.Target, "AdminInstrumentSmite");
|
_polymorphSystem.PolymorphEntity(args.Target, "AdminInstrumentSmite");
|
||||||
@@ -659,7 +659,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Remove gravity",
|
Text = "Remove gravity",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Structures/Machines/gravity_generator.rsi"), "off"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Structures/Machines/gravity_generator.rsi"), "off"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var grav = EnsureComp<MovementIgnoreGravityComponent>(args.Target);
|
var grav = EnsureComp<MovementIgnoreGravityComponent>(args.Target);
|
||||||
@@ -676,7 +676,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Reptilian Species Swap",
|
Text = "Reptilian Species Swap",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Fun/toys.rsi"), "plushie_lizard"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Fun/toys.rsi"), "plushie_lizard"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_polymorphSystem.PolymorphEntity(args.Target, "AdminLizardSmite");
|
_polymorphSystem.PolymorphEntity(args.Target, "AdminLizardSmite");
|
||||||
@@ -690,7 +690,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Locker stuff",
|
Text = "Locker stuff",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Structures/Storage/closet.rsi"), "generic"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Structures/Storage/closet.rsi"), "generic"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var xform = Transform(args.Target);
|
var xform = Transform(args.Target);
|
||||||
@@ -712,7 +712,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Headstand",
|
Text = "Headstand",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/refresh.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/refresh.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
EnsureComp<HeadstandComponent>(args.Target);
|
EnsureComp<HeadstandComponent>(args.Target);
|
||||||
@@ -726,7 +726,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Zoom in",
|
Text = "Zoom in",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/zoom.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/zoom.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var eye = EnsureComp<EyeComponent>(args.Target);
|
var eye = EnsureComp<EyeComponent>(args.Target);
|
||||||
@@ -744,7 +744,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Flip eye",
|
Text = "Flip eye",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/flip.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/flip.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var eye = EnsureComp<EyeComponent>(args.Target);
|
var eye = EnsureComp<EyeComponent>(args.Target);
|
||||||
@@ -762,7 +762,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Run Walk Swap",
|
Text = "Run Walk Swap",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/run-walk-swap.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/run-walk-swap.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var movementSpeed = EnsureComp<MovementSpeedModifierComponent>(args.Target);
|
var movementSpeed = EnsureComp<MovementSpeedModifierComponent>(args.Target);
|
||||||
@@ -782,7 +782,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Speak Backwards",
|
Text = "Speak Backwards",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/help-backwards.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/help-backwards.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
EnsureComp<BackwardsAccentComponent>(args.Target);
|
EnsureComp<BackwardsAccentComponent>(args.Target);
|
||||||
@@ -796,7 +796,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Disarm Prone",
|
Text = "Disarm Prone",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/Actions/disarm.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/Actions/disarm.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
EnsureComp<DisarmProneComponent>(args.Target);
|
EnsureComp<DisarmProneComponent>(args.Target);
|
||||||
@@ -810,7 +810,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Super speed",
|
Text = "Super speed",
|
||||||
Category = VerbCategory.Smite,
|
Category = VerbCategory.Smite,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/super_speed.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/super_speed.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var movementSpeed = EnsureComp<MovementSpeedModifierComponent>(args.Target);
|
var movementSpeed = EnsureComp<MovementSpeedModifierComponent>(args.Target);
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ public sealed partial class AdminVerbSystem
|
|||||||
Text = airlock.BoltsDown ? "Unbolt" : "Bolt",
|
Text = airlock.BoltsDown ? "Unbolt" : "Bolt",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = airlock.BoltsDown
|
Icon = airlock.BoltsDown
|
||||||
? new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/unbolt.png"))
|
? new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/unbolt.png"))
|
||||||
: new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/bolt.png")),
|
: new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/bolt.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_airlockSystem.SetBoltsWithAudio(args.Target, airlock, !airlock.BoltsDown);
|
_airlockSystem.SetBoltsWithAudio(args.Target, airlock, !airlock.BoltsDown);
|
||||||
@@ -86,7 +86,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = airlock.EmergencyAccess ? "Emergency Access Off" : "Emergency Access On",
|
Text = airlock.EmergencyAccess ? "Emergency Access Off" : "Emergency Access On",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/emergency_access.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/emergency_access.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_airlockSystem.ToggleEmergencyAccess(args.Target, airlock);
|
_airlockSystem.ToggleEmergencyAccess(args.Target, airlock);
|
||||||
@@ -108,7 +108,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Rejuvenate",
|
Text = "Rejuvenate",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/rejuvenate.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/rejuvenate.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
RejuvenateCommand.PerformRejuvenate(args.Target);
|
RejuvenateCommand.PerformRejuvenate(args.Target);
|
||||||
@@ -126,7 +126,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Make Indestructible",
|
Text = "Make Indestructible",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/plus.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/plus.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_godmodeSystem.EnableGodmode(args.Target);
|
_godmodeSystem.EnableGodmode(args.Target);
|
||||||
@@ -143,7 +143,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Make Vulnerable",
|
Text = "Make Vulnerable",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/plus.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/plus.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_godmodeSystem.DisableGodmode(args.Target);
|
_godmodeSystem.DisableGodmode(args.Target);
|
||||||
@@ -161,7 +161,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Refill Battery",
|
Text = "Refill Battery",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/fill_battery.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/fill_battery.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
battery.CurrentCharge = battery.MaxCharge;
|
battery.CurrentCharge = battery.MaxCharge;
|
||||||
@@ -177,7 +177,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Drain Battery",
|
Text = "Drain Battery",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/drain_battery.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/drain_battery.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
battery.CurrentCharge = 0;
|
battery.CurrentCharge = 0;
|
||||||
@@ -193,7 +193,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Infinite Battery",
|
Text = "Infinite Battery",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/infinite_battery.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/infinite_battery.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var recharger = EnsureComp<BatterySelfRechargerComponent>(args.Target);
|
var recharger = EnsureComp<BatterySelfRechargerComponent>(args.Target);
|
||||||
@@ -213,7 +213,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Block Unanchoring",
|
Text = "Block Unanchoring",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/anchor.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/anchor.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
RemComp(args.Target, anchor);
|
RemComp(args.Target, anchor);
|
||||||
@@ -231,7 +231,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Refill Internals Oxygen",
|
Text = "Refill Internals Oxygen",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Tanks/oxygen.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Tanks/oxygen.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
RefillGasTank(args.Target, Gas.Oxygen, tank);
|
RefillGasTank(args.Target, Gas.Oxygen, tank);
|
||||||
@@ -246,7 +246,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Refill Internals Nitrogen",
|
Text = "Refill Internals Nitrogen",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Tanks/red.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Tanks/red.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
RefillGasTank(args.Target, Gas.Nitrogen, tank);
|
RefillGasTank(args.Target, Gas.Nitrogen, tank);
|
||||||
@@ -261,7 +261,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Refill Internals Plasma",
|
Text = "Refill Internals Plasma",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Tanks/plasma.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Tanks/plasma.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
RefillGasTank(args.Target, Gas.Plasma, tank);
|
RefillGasTank(args.Target, Gas.Plasma, tank);
|
||||||
@@ -279,7 +279,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Refill Internals Oxygen",
|
Text = "Refill Internals Oxygen",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Tanks/oxygen.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Tanks/oxygen.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
foreach (var slot in _inventorySystem.GetSlots(args.Target))
|
foreach (var slot in _inventorySystem.GetSlots(args.Target))
|
||||||
@@ -311,7 +311,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Refill Internals Nitrogen",
|
Text = "Refill Internals Nitrogen",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Tanks/red.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Tanks/red.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
foreach (var slot in _inventorySystem.GetSlots(args.Target))
|
foreach (var slot in _inventorySystem.GetSlots(args.Target))
|
||||||
@@ -343,7 +343,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Refill Internals Plasma",
|
Text = "Refill Internals Plasma",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Tanks/plasma.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Tanks/plasma.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
foreach (var slot in _inventorySystem.GetSlots(args.Target))
|
foreach (var slot in _inventorySystem.GetSlots(args.Target))
|
||||||
@@ -376,7 +376,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Send to test arena",
|
Text = "Send to test arena",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/eject.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/eject.svg.192dpi.png")),
|
||||||
|
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
@@ -397,7 +397,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Grant All Access",
|
Text = "Grant All Access",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Misc/id_cards.rsi"), "centcom"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Misc/id_cards.rsi"), "centcom"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
GiveAllAccess(activeId.Value);
|
GiveAllAccess(activeId.Value);
|
||||||
@@ -412,7 +412,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Revoke All Access",
|
Text = "Revoke All Access",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Misc/id_cards.rsi"), "default"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Misc/id_cards.rsi"), "default"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
RevokeAllAccess(activeId.Value);
|
RevokeAllAccess(activeId.Value);
|
||||||
@@ -430,7 +430,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Grant All Access",
|
Text = "Grant All Access",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Misc/id_cards.rsi"), "centcom"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Misc/id_cards.rsi"), "centcom"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
GiveAllAccess(args.Target);
|
GiveAllAccess(args.Target);
|
||||||
@@ -445,7 +445,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Revoke All Access",
|
Text = "Revoke All Access",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Misc/id_cards.rsi"), "default"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Misc/id_cards.rsi"), "default"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
RevokeAllAccess(args.Target);
|
RevokeAllAccess(args.Target);
|
||||||
@@ -464,7 +464,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Adjust Stack",
|
Text = "Adjust Stack",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/adjust-stack.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/adjust-stack.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
// Unbounded intentionally.
|
// Unbounded intentionally.
|
||||||
@@ -483,7 +483,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Fill Stack",
|
Text = "Fill Stack",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/fill-stack.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/fill-stack.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_stackSystem.SetCount(args.Target, _stackSystem.GetMaxCount(stack), stack);
|
_stackSystem.SetCount(args.Target, _stackSystem.GetMaxCount(stack), stack);
|
||||||
@@ -499,7 +499,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Rename",
|
Text = "Rename",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/rename.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/rename.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_quickDialog.OpenDialog(player, "Rename", "Name", (string newName) =>
|
_quickDialog.OpenDialog(player, "Rename", "Name", (string newName) =>
|
||||||
@@ -517,7 +517,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Redescribe",
|
Text = "Redescribe",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/redescribe.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/redescribe.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_quickDialog.OpenDialog(player, "Redescribe", "Description", (LongString newDescription) =>
|
_quickDialog.OpenDialog(player, "Redescribe", "Description", (LongString newDescription) =>
|
||||||
@@ -535,7 +535,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Redescribe",
|
Text = "Redescribe",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/rename_and_redescribe.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/rename_and_redescribe.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_quickDialog.OpenDialog(player, "Rename & Redescribe", "Name", "Description",
|
_quickDialog.OpenDialog(player, "Rename & Redescribe", "Name", "Description",
|
||||||
@@ -560,7 +560,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Bar job slots",
|
Text = "Bar job slots",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/bar_jobslots.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/bar_jobslots.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
foreach (var (job, _) in _stationJobsSystem.GetJobs(args.Target))
|
foreach (var (job, _) in _stationJobsSystem.GetJobs(args.Target))
|
||||||
@@ -579,7 +579,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Locate Cargo Shuttle",
|
Text = "Locate Cargo Shuttle",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Clothing/Head/Soft/cargosoft.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Clothing/Head/Soft/cargosoft.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var shuttle = Comp<StationCargoOrderDatabaseComponent>(args.Target).Shuttle;
|
var shuttle = Comp<StationCargoOrderDatabaseComponent>(args.Target).Shuttle;
|
||||||
@@ -602,7 +602,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Refill Battery",
|
Text = "Refill Battery",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/fill_battery.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/fill_battery.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
foreach (var ent in childEnum)
|
foreach (var ent in childEnum)
|
||||||
@@ -624,7 +624,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Drain Battery",
|
Text = "Drain Battery",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/drain_battery.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/drain_battery.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
foreach (var ent in childEnum)
|
foreach (var ent in childEnum)
|
||||||
@@ -646,7 +646,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Infinite Battery",
|
Text = "Infinite Battery",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/infinite_battery.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/infinite_battery.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
// this kills the sloth
|
// this kills the sloth
|
||||||
@@ -675,7 +675,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Halt Movement",
|
Text = "Halt Movement",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/halt.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/halt.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_physics.SetLinearVelocity(args.Target, Vector2.Zero, body: physics);
|
_physics.SetLinearVelocity(args.Target, Vector2.Zero, body: physics);
|
||||||
@@ -698,7 +698,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Unpause Map",
|
Text = "Unpause Map",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/play.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/play.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_mapManager.SetMapPaused(map.MapId, false);
|
_mapManager.SetMapPaused(map.MapId, false);
|
||||||
@@ -715,7 +715,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Pause Map",
|
Text = "Pause Map",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/pause.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/pause.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_mapManager.SetMapPaused(map.MapId, true);
|
_mapManager.SetMapPaused(map.MapId, true);
|
||||||
@@ -735,7 +735,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Snap Joints",
|
Text = "Snap Joints",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/AdminActions/snap_joints.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/AdminActions/snap_joints.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_jointSystem.ClearJoints(joints);
|
_jointSystem.ClearJoints(joints);
|
||||||
@@ -753,7 +753,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Make Minigun",
|
Text = "Make Minigun",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Weapons/Guns/HMGs/minigun.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Weapons/Guns/HMGs/minigun.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
gun.FireRate = 15;
|
gun.FireRate = 15;
|
||||||
@@ -771,7 +771,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Set Bullet Amount",
|
Text = "Set Bullet Amount",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Objects/Fun/caps.rsi"), "mag-6"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Objects/Fun/caps.rsi"), "mag-6"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_quickDialog.OpenDialog(player, "Set Bullet Amount", $"Amount (max {ballisticAmmo.Capacity}):", (int amount) =>
|
_quickDialog.OpenDialog(player, "Set Bullet Amount", $"Amount (max {ballisticAmmo.Capacity}):", (int amount) =>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
Verb verb = new();
|
Verb verb = new();
|
||||||
verb.Text = Loc.GetString("ahelp-verb-get-data-text");
|
verb.Text = Loc.GetString("ahelp-verb-get-data-text");
|
||||||
verb.Category = VerbCategory.Admin;
|
verb.Category = VerbCategory.Admin;
|
||||||
verb.Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/gavel.svg.192dpi.png"));
|
verb.Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/gavel.svg.192dpi.png"));
|
||||||
verb.Act = () =>
|
verb.Act = () =>
|
||||||
_console.RemoteExecuteCommand(player, $"openahelp \"{targetActor.PlayerSession.UserId}\"");
|
_console.RemoteExecuteCommand(player, $"openahelp \"{targetActor.PlayerSession.UserId}\"");
|
||||||
verb.Impact = LogImpact.Low;
|
verb.Impact = LogImpact.Low;
|
||||||
@@ -91,7 +91,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
Verb prayerVerb = new();
|
Verb prayerVerb = new();
|
||||||
prayerVerb.Text = Loc.GetString("prayer-verbs-subtle-message");
|
prayerVerb.Text = Loc.GetString("prayer-verbs-subtle-message");
|
||||||
prayerVerb.Category = VerbCategory.Admin;
|
prayerVerb.Category = VerbCategory.Admin;
|
||||||
prayerVerb.Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/pray.svg.png"));
|
prayerVerb.Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/pray.svg.png"));
|
||||||
prayerVerb.Act = () =>
|
prayerVerb.Act = () =>
|
||||||
{
|
{
|
||||||
_quickDialog.OpenDialog(player, "Subtle Message", "Message", "Popup Message", (string message, string popupMessage) =>
|
_quickDialog.OpenDialog(player, "Subtle Message", "Message", "Popup Message", (string message, string popupMessage) =>
|
||||||
@@ -111,7 +111,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
? Loc.GetString("admin-verbs-unfreeze")
|
? Loc.GetString("admin-verbs-unfreeze")
|
||||||
: Loc.GetString("admin-verbs-freeze"),
|
: Loc.GetString("admin-verbs-freeze"),
|
||||||
Category = VerbCategory.Admin,
|
Category = VerbCategory.Admin,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/snow.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/snow.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
if (frozen)
|
if (frozen)
|
||||||
@@ -147,7 +147,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("admin-verbs-teleport-to"),
|
Text = Loc.GetString("admin-verbs-teleport-to"),
|
||||||
Category = VerbCategory.Admin,
|
Category = VerbCategory.Admin,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/open.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/open.svg.192dpi.png")),
|
||||||
Act = () => _console.ExecuteCommand(player, $"tpto {args.Target}"),
|
Act = () => _console.ExecuteCommand(player, $"tpto {args.Target}"),
|
||||||
Impact = LogImpact.Low
|
Impact = LogImpact.Low
|
||||||
});
|
});
|
||||||
@@ -157,7 +157,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("admin-verbs-teleport-here"),
|
Text = Loc.GetString("admin-verbs-teleport-here"),
|
||||||
Category = VerbCategory.Admin,
|
Category = VerbCategory.Admin,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/close.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/close.svg.192dpi.png")),
|
||||||
Act = () => _console.ExecuteCommand(player, $"tpto {args.Target} {args.User}"),
|
Act = () => _console.ExecuteCommand(player, $"tpto {args.Target} {args.User}"),
|
||||||
Impact = LogImpact.Low
|
Impact = LogImpact.Low
|
||||||
});
|
});
|
||||||
@@ -196,7 +196,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("delete-verb-get-data-text"),
|
Text = Loc.GetString("delete-verb-get-data-text"),
|
||||||
Category = VerbCategory.Debug,
|
Category = VerbCategory.Debug,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/delete_transparent.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/delete_transparent.svg.192dpi.png")),
|
||||||
Act = () => EntityManager.DeleteEntity(args.Target),
|
Act = () => EntityManager.DeleteEntity(args.Target),
|
||||||
Impact = LogImpact.Medium,
|
Impact = LogImpact.Medium,
|
||||||
ConfirmationPopup = true
|
ConfirmationPopup = true
|
||||||
@@ -211,7 +211,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("rejuvenate-verb-get-data-text"),
|
Text = Loc.GetString("rejuvenate-verb-get-data-text"),
|
||||||
Category = VerbCategory.Debug,
|
Category = VerbCategory.Debug,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/rejuvenate.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/rejuvenate.svg.192dpi.png")),
|
||||||
Act = () => RejuvenateCommand.PerformRejuvenate(args.Target),
|
Act = () => RejuvenateCommand.PerformRejuvenate(args.Target),
|
||||||
Impact = LogImpact.Medium
|
Impact = LogImpact.Medium
|
||||||
};
|
};
|
||||||
@@ -270,7 +270,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("make-sentient-verb-get-data-text"),
|
Text = Loc.GetString("make-sentient-verb-get-data-text"),
|
||||||
Category = VerbCategory.Debug,
|
Category = VerbCategory.Debug,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/sentient.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/sentient.svg.192dpi.png")),
|
||||||
Act = () => MakeSentientCommand.MakeSentient(args.Target, EntityManager),
|
Act = () => MakeSentientCommand.MakeSentient(args.Target, EntityManager),
|
||||||
Impact = LogImpact.Medium
|
Impact = LogImpact.Medium
|
||||||
};
|
};
|
||||||
@@ -285,7 +285,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("set-outfit-verb-get-data-text"),
|
Text = Loc.GetString("set-outfit-verb-get-data-text"),
|
||||||
Category = VerbCategory.Debug,
|
Category = VerbCategory.Debug,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")),
|
||||||
Act = () => _euiManager.OpenEui(new SetOutfitEui(args.Target), player),
|
Act = () => _euiManager.OpenEui(new SetOutfitEui(args.Target), player),
|
||||||
Impact = LogImpact.Medium
|
Impact = LogImpact.Medium
|
||||||
};
|
};
|
||||||
@@ -299,7 +299,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("in-range-unoccluded-verb-get-data-text"),
|
Text = Loc.GetString("in-range-unoccluded-verb-get-data-text"),
|
||||||
Category = VerbCategory.Debug,
|
Category = VerbCategory.Debug,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/information.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/information.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var message = args.User.InRangeUnOccluded(args.Target)
|
var message = args.User.InRangeUnOccluded(args.Target)
|
||||||
@@ -319,7 +319,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("tube-direction-verb-get-data-text"),
|
Text = Loc.GetString("tube-direction-verb-get-data-text"),
|
||||||
Category = VerbCategory.Debug,
|
Category = VerbCategory.Debug,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/information.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/information.svg.192dpi.png")),
|
||||||
Act = () => _disposalTubes.PopupDirections(args.Target, tube, args.User)
|
Act = () => _disposalTubes.PopupDirections(args.Target, tube, args.User)
|
||||||
};
|
};
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
@@ -345,7 +345,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
Verb verb = new()
|
Verb verb = new()
|
||||||
{
|
{
|
||||||
Text = Loc.GetString("configure-verb-get-data-text"),
|
Text = Loc.GetString("configure-verb-get-data-text"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/settings.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/settings.svg.192dpi.png")),
|
||||||
Category = VerbCategory.Debug,
|
Category = VerbCategory.Debug,
|
||||||
Act = () => _uiSystem.TryOpen(args.Target, ConfigurationUiKey.Key, actor.PlayerSession)
|
Act = () => _uiSystem.TryOpen(args.Target, ConfigurationUiKey.Key, actor.PlayerSession)
|
||||||
};
|
};
|
||||||
@@ -360,7 +360,7 @@ namespace Content.Server.Administration.Systems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("edit-solutions-verb-get-data-text"),
|
Text = Loc.GetString("edit-solutions-verb-get-data-text"),
|
||||||
Category = VerbCategory.Debug,
|
Category = VerbCategory.Debug,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/spill.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/spill.svg.192dpi.png")),
|
||||||
Act = () => OpenEditSolutionsEui(player, args.Target),
|
Act = () => OpenEditSolutionsEui(player, args.Target),
|
||||||
Impact = LogImpact.Medium // maybe high depending on WHAT reagents they add...
|
Impact = LogImpact.Medium // maybe high depending on WHAT reagents they add...
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace Content.Server.Bible.Components
|
|||||||
[DataField("summonAction")]
|
[DataField("summonAction")]
|
||||||
public InstantAction SummonAction = new()
|
public InstantAction SummonAction = new()
|
||||||
{
|
{
|
||||||
Icon = new SpriteSpecifier.Texture(new ("Clothing/Head/Hats/witch.rsi/icon.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("Clothing/Head/Hats/witch.rsi/icon.png")),
|
||||||
DisplayName = "bible-summon-verb",
|
DisplayName = "bible-summon-verb",
|
||||||
Description = "bible-summon-verb-desc",
|
Description = "bible-summon-verb-desc",
|
||||||
Event = new SummonActionEvent(),
|
Event = new SummonActionEvent(),
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public sealed class InternalsSystem : EntitySystem
|
|||||||
ToggleInternals(uid, args.User, false, component);
|
ToggleInternals(uid, args.User, false, component);
|
||||||
},
|
},
|
||||||
Message = Loc.GetString("action-description-internals-toggle"),
|
Message = Loc.GetString("action-description-internals-toggle"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/dot.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/dot.svg.192dpi.png")),
|
||||||
Text = Loc.GetString("action-name-internals-toggle"),
|
Text = Loc.GetString("action-name-internals-toggle"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ public class SeedData
|
|||||||
#region Cosmetics
|
#region Cosmetics
|
||||||
|
|
||||||
[DataField("plantRsi", required: true)]
|
[DataField("plantRsi", required: true)]
|
||||||
public ResPath PlantRsi { get; set; } = default!;
|
public ResourcePath PlantRsi { get; set; } = default!;
|
||||||
|
|
||||||
[DataField("plantIconState")] public string PlantIconState { get; set; } = "produce";
|
[DataField("plantIconState")] public string PlantIconState { get; set; } = "produce";
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public sealed partial class BuckleSystem
|
|||||||
{
|
{
|
||||||
Act = () => TryUnbuckle(uid, args.User, buckle: component),
|
Act = () => TryUnbuckle(uid, args.User, buckle: component),
|
||||||
Text = Loc.GetString("verb-categories-unbuckle"),
|
Text = Loc.GetString("verb-categories-unbuckle"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/unbuckle.svg.192dpi.png"))
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/unbuckle.svg.192dpi.png"))
|
||||||
};
|
};
|
||||||
|
|
||||||
if (args.Target == args.User && args.Using == null)
|
if (args.Target == args.User && args.Using == null)
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public sealed class ChameleonClothingSystem : SharedChameleonClothingSystem
|
|||||||
args.Verbs.Add(new InteractionVerb()
|
args.Verbs.Add(new InteractionVerb()
|
||||||
{
|
{
|
||||||
Text = Loc.GetString("chameleon-component-verb-text"),
|
Text = Loc.GetString("chameleon-component-verb-text"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/settings.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/settings.svg.192dpi.png")),
|
||||||
Act = () => TryOpenUi(uid, args.User, component)
|
Act = () => TryOpenUi(uid, args.User, component)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace Content.Server.Construction.Conditions
|
|||||||
Localization = Anchored
|
Localization = Anchored
|
||||||
? "construction-step-condition-entity-anchored"
|
? "construction-step-condition-entity-anchored"
|
||||||
: "construction-step-condition-entity-unanchored",
|
: "construction-step-condition-entity-unanchored",
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("Objects/Tools/wrench.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("Objects/Tools/wrench.rsi"), "icon"),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Content.Server.Construction
|
|||||||
//TODO VERBS add more construction verbs? Until then, removing construction category
|
//TODO VERBS add more construction verbs? Until then, removing construction category
|
||||||
verb.Text = Loc.GetString("deconstructible-verb-begin-deconstruct");
|
verb.Text = Loc.GetString("deconstructible-verb-begin-deconstruct");
|
||||||
verb.Icon = new SpriteSpecifier.Texture(
|
verb.Icon = new SpriteSpecifier.Texture(
|
||||||
new ("/Textures/Interface/hammer_scaled.svg.192dpi.png"));
|
new ResourcePath("/Textures/Interface/hammer_scaled.svg.192dpi.png"));
|
||||||
|
|
||||||
verb.Act = () =>
|
verb.Act = () =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public sealed partial class ConstructionSystem
|
|||||||
Text = Loc.GetString("machine-upgrade-examinable-verb-text"),
|
Text = Loc.GetString("machine-upgrade-examinable-verb-text"),
|
||||||
Message = Loc.GetString("machine-upgrade-examinable-verb-message"),
|
Message = Loc.GetString("machine-upgrade-examinable-verb-message"),
|
||||||
Category = VerbCategory.Examine,
|
Category = VerbCategory.Examine,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/pickup.svg.192dpi.png"))
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/pickup.svg.192dpi.png"))
|
||||||
};
|
};
|
||||||
|
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace Content.Server.DetailExaminable
|
|||||||
Category = VerbCategory.Examine,
|
Category = VerbCategory.Examine,
|
||||||
Disabled = !detailsRange,
|
Disabled = !detailsRange,
|
||||||
Message = Loc.GetString("detail-examinable-verb-disabled"),
|
Message = Loc.GetString("detail-examinable-verb-disabled"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/examine.svg.192dpi.png"))
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/examine.svg.192dpi.png"))
|
||||||
};
|
};
|
||||||
|
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
@@ -177,8 +177,8 @@ public sealed class NetworkConfiguratorSystem : SharedNetworkConfiguratorSystem
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString(isDeviceList ? "network-configurator-configure" : "network-configurator-save-device"),
|
Text = Loc.GetString(isDeviceList ? "network-configurator-configure" : "network-configurator-save-device"),
|
||||||
Icon = isDeviceList ?
|
Icon = isDeviceList ?
|
||||||
new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/settings.svg.192dpi.png")) :
|
new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/settings.svg.192dpi.png")) :
|
||||||
new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/in.svg.192dpi.png")),
|
new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/in.svg.192dpi.png")),
|
||||||
Act = () => OnUsed(uid, component, args.Target, args.User),
|
Act = () => OnUsed(uid, component, args.Target, args.User),
|
||||||
Impact = LogImpact.Low
|
Impact = LogImpact.Low
|
||||||
};
|
};
|
||||||
@@ -200,7 +200,7 @@ public sealed class NetworkConfiguratorSystem : SharedNetworkConfiguratorSystem
|
|||||||
AlternativeVerb verb = new()
|
AlternativeVerb verb = new()
|
||||||
{
|
{
|
||||||
Text = Loc.GetString("network-configurator-save-device"),
|
Text = Loc.GetString("network-configurator-save-device"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/in.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/in.svg.192dpi.png")),
|
||||||
Act = () => TryAddNetworkDevice(args.Target, args.Using.Value, args.User),
|
Act = () => TryAddNetworkDevice(args.Target, args.Using.Value, args.User),
|
||||||
Impact = LogImpact.Low
|
Impact = LogImpact.Low
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
|||||||
AlternativeVerb flushVerb = new();
|
AlternativeVerb flushVerb = new();
|
||||||
flushVerb.Act = () => Engage(uid, component);
|
flushVerb.Act = () => Engage(uid, component);
|
||||||
flushVerb.Text = Loc.GetString("disposal-flush-verb-get-data-text");
|
flushVerb.Text = Loc.GetString("disposal-flush-verb-get-data-text");
|
||||||
flushVerb.Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/delete_transparent.svg.192dpi.png"));
|
flushVerb.Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/delete_transparent.svg.192dpi.png"));
|
||||||
flushVerb.Priority = 1;
|
flushVerb.Priority = 1;
|
||||||
args.Verbs.Add(flushVerb);
|
args.Verbs.Add(flushVerb);
|
||||||
|
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ namespace Content.Server.Entry
|
|||||||
var dest = configManager.GetCVar(CCVars.DestinationFile);
|
var dest = configManager.GetCVar(CCVars.DestinationFile);
|
||||||
if (!string.IsNullOrEmpty(dest))
|
if (!string.IsNullOrEmpty(dest))
|
||||||
{
|
{
|
||||||
var resPath = new ResPath(dest).ToRootedPath();
|
var resPath = new ResourcePath(dest).ToRootedPath();
|
||||||
var file = resourceManager.UserData.OpenWriteText(resPath.WithName("chem_" + dest));
|
var file = resourceManager.UserData.OpenWriteText(resPath.WithName("chem_" + dest));
|
||||||
ChemistryJsonGenerator.PublishJson(file);
|
ChemistryJsonGenerator.PublishJson(file);
|
||||||
file.Flush();
|
file.Flush();
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ namespace Content.Server.Foldable
|
|||||||
{
|
{
|
||||||
Act = () => TryToggleFold(uid, component),
|
Act = () => TryToggleFold(uid, component),
|
||||||
Text = component.IsFolded ? Loc.GetString("unfold-verb") : Loc.GetString("fold-verb"),
|
Text = component.IsFolded ? Loc.GetString("unfold-verb") : Loc.GetString("fold-verb"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/fold.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/fold.svg.192dpi.png")),
|
||||||
|
|
||||||
// If the object is unfolded and they click it, they want to fold it, if it's folded, they want to pick it up
|
// If the object is unfolded and they click it, they want to fold it, if it's folded, they want to pick it up
|
||||||
Priority = component.IsFolded ? 0 : 2,
|
Priority = component.IsFolded ? 0 : 2,
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ public sealed partial class GameTicker
|
|||||||
public string? LobbyBackground { get; private set; }
|
public string? LobbyBackground { get; private set; }
|
||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
private List<ResPath>? _lobbyBackgrounds;
|
private List<ResourcePath>? _lobbyBackgrounds;
|
||||||
|
|
||||||
private static readonly string[] WhitelistedBackgroundExtensions = new string[] {"png", "jpg", "jpeg"};
|
private static readonly string[] WhitelistedBackgroundExtensions = new string[] {"png", "jpg", "jpeg"};
|
||||||
|
|
||||||
|
|||||||
@@ -17,5 +17,5 @@ public sealed class LobbyBackgroundPrototype : IPrototype
|
|||||||
/// The sprite to use as the background. This should ideally be 1920x1080.
|
/// The sprite to use as the background. This should ideally be 1920x1080.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("background", required: true)]
|
[DataField("background", required: true)]
|
||||||
public ResPath Background = default!;
|
public ResourcePath Background = default!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,11 +74,11 @@ public sealed class NukeopsRuleConfiguration : GameRuleConfiguration
|
|||||||
[DataField("normalNames", customTypeSerializer: typeof(PrototypeIdSerializer<DatasetPrototype>))]
|
[DataField("normalNames", customTypeSerializer: typeof(PrototypeIdSerializer<DatasetPrototype>))]
|
||||||
public string NormalNames = "SyndicateNamesNormal";
|
public string NormalNames = "SyndicateNamesNormal";
|
||||||
|
|
||||||
[DataField("outpostMap", customTypeSerializer: typeof(ResPathSerializer))]
|
[DataField("outpostMap", customTypeSerializer: typeof(ResourcePathSerializer))]
|
||||||
public ResPath NukieOutpostMap = new("/Maps/nukieplanet.yml");
|
public ResourcePath? NukieOutpostMap = new("/Maps/nukieplanet.yml");
|
||||||
|
|
||||||
[DataField("shuttleMap", customTypeSerializer: typeof(ResPathSerializer))]
|
[DataField("shuttleMap", customTypeSerializer: typeof(ResourcePathSerializer))]
|
||||||
public ResPath NukieShuttleMap = new("/Maps/infiltrator.yml");
|
public ResourcePath? NukieShuttleMap = new("/Maps/infiltrator.yml");
|
||||||
|
|
||||||
[DataField("greetingSound", customTypeSerializer: typeof(SoundSpecifierTypeSerializer))]
|
[DataField("greetingSound", customTypeSerializer: typeof(SoundSpecifierTypeSerializer))]
|
||||||
public SoundSpecifier? GreetSound = new SoundPathSpecifier("/Audio/Misc/nukeops.ogg");
|
public SoundSpecifier? GreetSound = new SoundPathSpecifier("/Audio/Misc/nukeops.ogg");
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace Content.Server.Ghost.Components
|
|||||||
public InstantAction Action = new()
|
public InstantAction Action = new()
|
||||||
{
|
{
|
||||||
UseDelay = TimeSpan.FromSeconds(120),
|
UseDelay = TimeSpan.FromSeconds(120),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("Interface/Actions/scream.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("Interface/Actions/scream.png")),
|
||||||
DisplayName = "action-name-boo",
|
DisplayName = "action-name-boo",
|
||||||
Description = "action-description-boo",
|
Description = "action-description-boo",
|
||||||
CheckCanInteract = false,
|
CheckCanInteract = false,
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace Content.Server.Guardian
|
|||||||
{
|
{
|
||||||
DisplayName = "action-name-guardian",
|
DisplayName = "action-name-guardian",
|
||||||
Description = "action-description-guardian",
|
Description = "action-description-guardian",
|
||||||
Icon = new SpriteSpecifier.Texture(new ("Interface/Actions/manifest.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("Interface/Actions/manifest.png")),
|
||||||
UseDelay = TimeSpan.FromSeconds(2),
|
UseDelay = TimeSpan.FromSeconds(2),
|
||||||
CheckCanInteract = false, // allow use while stunned, etc. Gets removed on death anyways.
|
CheckCanInteract = false, // allow use while stunned, etc. Gets removed on death anyways.
|
||||||
Event = new GuardianToggleActionEvent(),
|
Event = new GuardianToggleActionEvent(),
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public sealed class HealthExaminableSystem : EntitySystem
|
|||||||
Category = VerbCategory.Examine,
|
Category = VerbCategory.Examine,
|
||||||
Disabled = !detailsRange,
|
Disabled = !detailsRange,
|
||||||
Message = Loc.GetString("health-examinable-verb-disabled"),
|
Message = Loc.GetString("health-examinable-verb-disabled"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/rejuvenate.svg.192dpi.png"))
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/rejuvenate.svg.192dpi.png"))
|
||||||
};
|
};
|
||||||
|
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public sealed partial class HumanoidAppearanceSystem
|
|||||||
{
|
{
|
||||||
Text = "Modify markings",
|
Text = "Modify markings",
|
||||||
Category = VerbCategory.Tricks,
|
Category = VerbCategory.Tricks,
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Mobs/Customization/reptilian_parts.rsi"), "tail_smooth"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("/Textures/Mobs/Customization/reptilian_parts.rsi"), "tail_smooth"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
_uiSystem.TryOpen(uid, HumanoidMarkingModifierKey.Key, actor.PlayerSession);
|
_uiSystem.TryOpen(uid, HumanoidMarkingModifierKey.Key, actor.PlayerSession);
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ public sealed class SharpSystem : EntitySystem
|
|||||||
},
|
},
|
||||||
Message = message,
|
Message = message,
|
||||||
Disabled = disabled,
|
Disabled = disabled,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/cutlery.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/cutlery.svg.192dpi.png")),
|
||||||
Text = Loc.GetString("butcherable-verb-name"),
|
Text = Loc.GetString("butcherable-verb-name"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ namespace Content.Server.Light.EntitySystems
|
|||||||
ActivationVerb verb = new()
|
ActivationVerb verb = new()
|
||||||
{
|
{
|
||||||
Text = Loc.GetString("expendable-light-start-verb"),
|
Text = Loc.GetString("expendable-light-start-verb"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/light.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/light.svg.192dpi.png")),
|
||||||
Act = () => TryActivate(component)
|
Act = () => TryActivate(component)
|
||||||
};
|
};
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ namespace Content.Server.Light.EntitySystems
|
|||||||
ActivationVerb verb = new()
|
ActivationVerb verb = new()
|
||||||
{
|
{
|
||||||
Text = Loc.GetString("verb-common-toggle-light"),
|
Text = Loc.GetString("verb-common-toggle-light"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/light.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/light.svg.192dpi.png")),
|
||||||
Act = component.Activated
|
Act = component.Activated
|
||||||
? () => TurnOff(uid, component)
|
? () => TurnOff(uid, component)
|
||||||
: () => TurnOn(args.User, uid, component)
|
: () => TurnOn(args.User, uid, component)
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ namespace Content.Server.Light.EntitySystems
|
|||||||
|
|
||||||
ActivationVerb verb = new();
|
ActivationVerb verb = new();
|
||||||
verb.Text = Loc.GetString("toggle-flashlight-verb-get-data-text");
|
verb.Text = Loc.GetString("toggle-flashlight-verb-get-data-text");
|
||||||
verb.Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/light.svg.192dpi.png"));
|
verb.Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/light.svg.192dpi.png"));
|
||||||
verb.Act = () => ToggleLight(uid, component);
|
verb.Act = () => ToggleLight(uid, component);
|
||||||
verb.Priority = -1; // For things like PDA's, Open-UI and other verbs that should be higher priority.
|
verb.Priority = -1; // For things like PDA's, Open-UI and other verbs that should be higher priority.
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ namespace Content.Server.MachineLinking.System
|
|||||||
Category = VerbCategory.Lever,
|
Category = VerbCategory.Lever,
|
||||||
Message = Loc.GetString("two-way-lever-cant"),
|
Message = Loc.GetString("two-way-lever-cant"),
|
||||||
Disabled = component.State == TwoWayLeverState.Left,
|
Disabled = component.State == TwoWayLeverState.Left,
|
||||||
Icon = new SpriteSpecifier.Texture(new ($"/Textures/Interface/VerbIcons/{_leftToggleImage}")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath($"/Textures/Interface/VerbIcons/{_leftToggleImage}")),
|
||||||
Text = Loc.GetString("two-way-lever-left"),
|
Text = Loc.GetString("two-way-lever-left"),
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ namespace Content.Server.MachineLinking.System
|
|||||||
Category = VerbCategory.Lever,
|
Category = VerbCategory.Lever,
|
||||||
Message = Loc.GetString("two-way-lever-cant"),
|
Message = Loc.GetString("two-way-lever-cant"),
|
||||||
Disabled = component.State == TwoWayLeverState.Right,
|
Disabled = component.State == TwoWayLeverState.Right,
|
||||||
Icon = new SpriteSpecifier.Texture(new ($"/Textures/Interface/VerbIcons/{_rightToggleImage}")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath($"/Textures/Interface/VerbIcons/{_rightToggleImage}")),
|
||||||
Text = Loc.GetString("two-way-lever-right"),
|
Text = Loc.GetString("two-way-lever-right"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public sealed class MappingSystem : EntitySystem
|
|||||||
}
|
}
|
||||||
|
|
||||||
var saveDir = Path.Combine(_cfg.GetCVar(CCVars.AutosaveDirectory), name);
|
var saveDir = Path.Combine(_cfg.GetCVar(CCVars.AutosaveDirectory), name);
|
||||||
_resMan.UserData.CreateDir(new ResPath(saveDir).ToRootedPath());
|
_resMan.UserData.CreateDir(new ResourcePath(saveDir).ToRootedPath());
|
||||||
|
|
||||||
var path = Path.Combine(saveDir, $"{DateTime.Now.ToString("yyyy-M-dd_HH.mm.ss")}-AUTO.yml");
|
var path = Path.Combine(saveDir, $"{DateTime.Now.ToString("yyyy-M-dd_HH.mm.ss")}-AUTO.yml");
|
||||||
_currentlyAutosaving[map] = (CalculateNextTime(), name);
|
_currentlyAutosaving[map] = (CalculateNextTime(), name);
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public sealed partial class GameMapPrototype : IPrototype
|
|||||||
/// Relative directory path to the given map, i.e. `/Maps/saltern.yml`
|
/// Relative directory path to the given map, i.e. `/Maps/saltern.yml`
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("mapPath", required: true)]
|
[DataField("mapPath", required: true)]
|
||||||
public ResPath MapPath { get; } = default!;
|
public ResourcePath MapPath { get; } = default!;
|
||||||
|
|
||||||
[DataField("stations", required: true)]
|
[DataField("stations", required: true)]
|
||||||
private Dictionary<string, StationConfig> _stations = new();
|
private Dictionary<string, StationConfig> _stations = new();
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace Content.Server.Medical.Components
|
|||||||
|
|
||||||
public EntityTargetAction Action = new()
|
public EntityTargetAction Action = new()
|
||||||
{
|
{
|
||||||
Icon = new SpriteSpecifier.Texture(new ("Clothing/Neck/Misc/stethoscope.rsi/icon.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("Clothing/Neck/Misc/stethoscope.rsi/icon.png")),
|
||||||
DisplayName = "stethoscope-verb",
|
DisplayName = "stethoscope-verb",
|
||||||
Priority = -1,
|
Priority = -1,
|
||||||
Event = new StethoscopeActionEvent(),
|
Event = new StethoscopeActionEvent(),
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace Content.Server.Medical
|
|||||||
StartListening(component.Stethoscope, uid, args.Target, stetho); // start doafter
|
StartListening(component.Stethoscope, uid, args.Target, stetho); // start doafter
|
||||||
},
|
},
|
||||||
Text = Loc.GetString("stethoscope-verb"),
|
Text = Loc.GetString("stethoscope-verb"),
|
||||||
Icon = new SpriteSpecifier.Rsi(new ("Clothing/Neck/Misc/stethoscope.rsi"), "icon"),
|
Icon = new SpriteSpecifier.Rsi(new ResourcePath("Clothing/Neck/Misc/stethoscope.rsi"), "icon"),
|
||||||
Priority = 2
|
Priority = 2
|
||||||
};
|
};
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
|||||||
{
|
{
|
||||||
TryDrink(ev.User, ev.User, component, uid);
|
TryDrink(ev.User, ev.User, component, uid);
|
||||||
},
|
},
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/drink.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/drink.svg.192dpi.png")),
|
||||||
Text = Loc.GetString("drink-system-verb-drink"),
|
Text = Loc.GetString("drink-system-verb-drink"),
|
||||||
Priority = 2
|
Priority = 2
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
|||||||
{
|
{
|
||||||
TryFeed(ev.User, ev.User, uid, component);
|
TryFeed(ev.User, ev.User, uid, component);
|
||||||
},
|
},
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/cutlery.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/cutlery.svg.192dpi.png")),
|
||||||
Text = Loc.GetString("food-system-verb-eat"),
|
Text = Loc.GetString("food-system-verb-eat"),
|
||||||
Priority = -1
|
Priority = -1
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Content.Server.Objectives.Conditions
|
|||||||
|
|
||||||
public string Description => Loc.GetString("objective-condition-die-description");
|
public string Description => Loc.GetString("objective-condition-die-description");
|
||||||
|
|
||||||
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ("Mobs/Ghosts/ghost_human.rsi"), "icon");
|
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ResourcePath("Mobs/Ghosts/ghost_human.rsi"), "icon");
|
||||||
|
|
||||||
public float Progress => (_mind?.CharacterDeadIC ?? true) ? 1f : 0f;
|
public float Progress => (_mind?.CharacterDeadIC ?? true) ? 1f : 0f;
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace Content.Server.Objectives.Conditions
|
|||||||
|
|
||||||
public string Description => Loc.GetString("objective-condition-escape-shuttle-description");
|
public string Description => Loc.GetString("objective-condition-escape-shuttle-description");
|
||||||
|
|
||||||
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ("Structures/Furniture/chairs.rsi"), "shuttle");
|
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ResourcePath("Structures/Furniture/chairs.rsi"), "shuttle");
|
||||||
|
|
||||||
private bool IsAgentOnShuttle(TransformComponent agentXform, EntityUid? shuttle)
|
private bool IsAgentOnShuttle(TransformComponent agentXform, EntityUid? shuttle)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace Content.Server.Objectives.Conditions
|
|||||||
|
|
||||||
public string Description => Loc.GetString("objective-condition-kill-person-description");
|
public string Description => Loc.GetString("objective-condition-kill-person-description");
|
||||||
|
|
||||||
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ("Objects/Weapons/Guns/Pistols/viper.rsi"), "icon");
|
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ResourcePath("Objects/Weapons/Guns/Pistols/viper.rsi"), "icon");
|
||||||
|
|
||||||
public float Progress => (Target?.CharacterDeadIC ?? true) ? 1f : 0f;
|
public float Progress => (Target?.CharacterDeadIC ?? true) ? 1f : 0f;
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ namespace Content.Server.Objectives.Conditions
|
|||||||
|
|
||||||
public string Description => Loc.GetString("objective-condition-other-traitor-alive-description");
|
public string Description => Loc.GetString("objective-condition-other-traitor-alive-description");
|
||||||
|
|
||||||
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ("Objects/Misc/bureaucracy.rsi"), "folder-white");
|
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ResourcePath("Objects/Misc/bureaucracy.rsi"), "folder-white");
|
||||||
|
|
||||||
public float Progress => (!_target?.CharacterDeadIC ?? true) ? 1f : 0f;
|
public float Progress => (!_target?.CharacterDeadIC ?? true) ? 1f : 0f;
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ namespace Content.Server.Objectives.Conditions
|
|||||||
|
|
||||||
public string Description => Loc.GetString("objective-condition-other-traitor-progress-description");
|
public string Description => Loc.GetString("objective-condition-other-traitor-progress-description");
|
||||||
|
|
||||||
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ("Objects/Misc/bureaucracy.rsi"), "folder-white");
|
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ResourcePath("Objects/Misc/bureaucracy.rsi"), "folder-white");
|
||||||
|
|
||||||
public float Progress
|
public float Progress
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ namespace Content.Server.PDA.Ringer
|
|||||||
|
|
||||||
private string GetSound(Note note)
|
private string GetSound(Note note)
|
||||||
{
|
{
|
||||||
return new ResPath("/Audio/Effects/RingtoneNotes/" + note.ToString().ToLower()) + ".ogg";
|
return new ResourcePath("/Audio/Effects/RingtoneNotes/" + note.ToString().ToLower()) + ".ogg";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace Content.Server.Power.EntitySystems
|
|||||||
Message = Loc.GetString("cable-multitool-system-verb-tooltip"),
|
Message = Loc.GetString("cable-multitool-system-verb-tooltip"),
|
||||||
Text = Loc.GetString("cable-multitool-system-verb-name"),
|
Text = Loc.GetString("cable-multitool-system-verb-name"),
|
||||||
Category = VerbCategory.Examine,
|
Category = VerbCategory.Examine,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/zap.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/zap.svg.192dpi.png")),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
var markup = FormattedMessage.FromMarkup(GenerateCableMarkup(uid));
|
var markup = FormattedMessage.FromMarkup(GenerateCableMarkup(uid));
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Content.Server.Power.EntitySystems
|
|||||||
{
|
{
|
||||||
Text = Loc.GetString("verb-debug-toggle-need-power"),
|
Text = Loc.GetString("verb-debug-toggle-need-power"),
|
||||||
Category = VerbCategory.Debug,
|
Category = VerbCategory.Debug,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/smite.svg.192dpi.png")), // "smite" is a lightning bolt
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/smite.svg.192dpi.png")), // "smite" is a lightning bolt
|
||||||
Act = () => component.NeedsPower = !component.NeedsPower
|
Act = () => component.NeedsPower = !component.NeedsPower
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -127,7 +127,7 @@ namespace Content.Server.Power.EntitySystems
|
|||||||
{
|
{
|
||||||
TogglePower(uid, user: args.User);
|
TogglePower(uid, user: args.User);
|
||||||
},
|
},
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/Spare/poweronoff.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/Spare/poweronoff.svg.192dpi.png")),
|
||||||
Text = Loc.GetString("power-switch-component-toggle-verb"),
|
Text = Loc.GetString("power-switch-component-toggle-verb"),
|
||||||
Priority = -3
|
Priority = -3
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace Content.Server.Prayer
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("verbImage")]
|
[DataField("verbImage")]
|
||||||
[ViewVariables(VVAccess.ReadOnly)]
|
[ViewVariables(VVAccess.ReadOnly)]
|
||||||
public SpriteSpecifier? VerbImage = new SpriteSpecifier.Texture(new ("/Textures/Interface/pray.svg.png"));
|
public SpriteSpecifier? VerbImage = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/pray.svg.png"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ namespace Content.Server.Procedural;
|
|||||||
public sealed class DungeonAtlasTemplateComponent : Component
|
public sealed class DungeonAtlasTemplateComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("path", required: true)]
|
[DataField("path", required: true)]
|
||||||
public ResPath Path;
|
public ResourcePath? Path;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ public sealed partial class DungeonSystem : EntitySystem
|
|||||||
while (query.MoveNext(out var uid, out comp))
|
while (query.MoveNext(out var uid, out comp))
|
||||||
{
|
{
|
||||||
// Exists
|
// Exists
|
||||||
if (comp.Path.Equals(proto.AtlasPath))
|
if (comp.Path?.Equals(proto.AtlasPath) == true)
|
||||||
return Transform(uid).MapID;
|
return Transform(uid).MapID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ namespace Content.Server.Rotatable
|
|||||||
Act = () => TryFlip(uid, component, args.User),
|
Act = () => TryFlip(uid, component, args.User),
|
||||||
Text = Loc.GetString("flippable-verb-get-data-text"),
|
Text = Loc.GetString("flippable-verb-get-data-text"),
|
||||||
Category = VerbCategory.Rotate,
|
Category = VerbCategory.Rotate,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/flip.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/flip.svg.192dpi.png")),
|
||||||
Priority = -3, // show flip last
|
Priority = -3, // show flip last
|
||||||
DoContactInteraction = true
|
DoContactInteraction = true
|
||||||
};
|
};
|
||||||
@@ -56,7 +56,7 @@ namespace Content.Server.Rotatable
|
|||||||
DoContactInteraction = true,
|
DoContactInteraction = true,
|
||||||
Act = () => EntityManager.GetComponent<TransformComponent>(uid).LocalRotation = Angle.Zero,
|
Act = () => EntityManager.GetComponent<TransformComponent>(uid).LocalRotation = Angle.Zero,
|
||||||
Category = VerbCategory.Rotate,
|
Category = VerbCategory.Rotate,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/refresh.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/refresh.svg.192dpi.png")),
|
||||||
Text = "Reset",
|
Text = "Reset",
|
||||||
Priority = -2, // show CCW, then CW, then reset
|
Priority = -2, // show CCW, then CW, then reset
|
||||||
CloseMenu = false,
|
CloseMenu = false,
|
||||||
@@ -68,7 +68,7 @@ namespace Content.Server.Rotatable
|
|||||||
{
|
{
|
||||||
Act = () => EntityManager.GetComponent<TransformComponent>(uid).LocalRotation -= component.Increment,
|
Act = () => EntityManager.GetComponent<TransformComponent>(uid).LocalRotation -= component.Increment,
|
||||||
Category = VerbCategory.Rotate,
|
Category = VerbCategory.Rotate,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/rotate_cw.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/rotate_cw.svg.192dpi.png")),
|
||||||
Priority = -1,
|
Priority = -1,
|
||||||
CloseMenu = false, // allow for easy double rotations.
|
CloseMenu = false, // allow for easy double rotations.
|
||||||
};
|
};
|
||||||
@@ -79,7 +79,7 @@ namespace Content.Server.Rotatable
|
|||||||
{
|
{
|
||||||
Act = () => EntityManager.GetComponent<TransformComponent>(uid).LocalRotation += component.Increment,
|
Act = () => EntityManager.GetComponent<TransformComponent>(uid).LocalRotation += component.Increment,
|
||||||
Category = VerbCategory.Rotate,
|
Category = VerbCategory.Rotate,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/rotate_ccw.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/rotate_ccw.svg.192dpi.png")),
|
||||||
Priority = 0,
|
Priority = 0,
|
||||||
CloseMenu = false, // allow for easy double rotations.
|
CloseMenu = false, // allow for easy double rotations.
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace Content.Server.Salvage
|
|||||||
/// Relative directory path to the given map, i.e. `Maps/Salvage/template.yml`
|
/// Relative directory path to the given map, i.e. `Maps/Salvage/template.yml`
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("mapPath", required: true)]
|
[DataField("mapPath", required: true)]
|
||||||
public ResPath MapPath { get; } = default!;
|
public ResourcePath MapPath { get; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Map rectangle in world coordinates (to check if it fits)
|
/// Map rectangle in world coordinates (to check if it fits)
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ namespace Content.Server.Shuttles.Components;
|
|||||||
[RegisterComponent, Access(typeof(ShuttleSystem))]
|
[RegisterComponent, Access(typeof(ShuttleSystem))]
|
||||||
public sealed class GridFillComponent : Component
|
public sealed class GridFillComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("path")] public ResPath Path = new("/Maps/Shuttles/escape_pod_small.yml");
|
[DataField("path")] public ResourcePath Path = new("/Maps/Shuttles/escape_pod_small.yml");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,5 +12,5 @@ public sealed class StationArrivalsComponent : Component
|
|||||||
[DataField("shuttle")]
|
[DataField("shuttle")]
|
||||||
public EntityUid Shuttle;
|
public EntityUid Shuttle;
|
||||||
|
|
||||||
[DataField("shuttlePath")] public ResPath ShuttlePath = new("/Maps/Shuttles/arrivals.yml");
|
[DataField("shuttlePath")] public ResourcePath ShuttlePath = new("/Maps/Shuttles/arrivals.yml");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ public sealed partial class StationConfig
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Emergency shuttle map path for this station.
|
/// Emergency shuttle map path for this station.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("emergencyShuttlePath", customTypeSerializer: typeof(ResPathSerializer))]
|
[DataField("emergencyShuttlePath", customTypeSerializer: typeof(ResourcePathSerializer))]
|
||||||
public ResPath EmergencyShuttlePath { get; set; } = new("/Maps/Shuttles/emergency.yml");
|
public ResourcePath EmergencyShuttlePath { get; set; } = new("/Maps/Shuttles/emergency.yml");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public sealed class StickySystem : EntitySystem
|
|||||||
{
|
{
|
||||||
DoContactInteraction = true,
|
DoContactInteraction = true,
|
||||||
Text = Loc.GetString("comp-sticky-unstick-verb-text"),
|
Text = Loc.GetString("comp-sticky-unstick-verb-text"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/eject.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/eject.svg.192dpi.png")),
|
||||||
Act = () => StartUnsticking(uid, args.User, component)
|
Act = () => StartUnsticking(uid, args.User, component)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ namespace Content.Server.Storage.EntitySystems
|
|||||||
StartDoAfter(uid, args.Target, args.User, dumpable);//Had multiplier of 0.6f
|
StartDoAfter(uid, args.Target, args.User, dumpable);//Had multiplier of 0.6f
|
||||||
},
|
},
|
||||||
Text = Loc.GetString("dump-verb-name"),
|
Text = Loc.GetString("dump-verb-name"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/drop.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/drop.svg.192dpi.png")),
|
||||||
};
|
};
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,13 +124,13 @@ namespace Content.Server.Storage.EntitySystems
|
|||||||
{
|
{
|
||||||
verb.Text = Loc.GetString("verb-common-close-ui");
|
verb.Text = Loc.GetString("verb-common-close-ui");
|
||||||
verb.Icon = new SpriteSpecifier.Texture(
|
verb.Icon = new SpriteSpecifier.Texture(
|
||||||
new ("/Textures/Interface/VerbIcons/close.svg.192dpi.png"));
|
new ResourcePath("/Textures/Interface/VerbIcons/close.svg.192dpi.png"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
verb.Text = Loc.GetString("verb-common-open-ui");
|
verb.Text = Loc.GetString("verb-common-open-ui");
|
||||||
verb.Icon = new SpriteSpecifier.Texture(
|
verb.Icon = new SpriteSpecifier.Texture(
|
||||||
new ("/Textures/Interface/VerbIcons/open.svg.192dpi.png"));
|
new ResourcePath("/Textures/Interface/VerbIcons/open.svg.192dpi.png"));
|
||||||
}
|
}
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ namespace Content.Server.Strip
|
|||||||
Verb verb = new()
|
Verb verb = new()
|
||||||
{
|
{
|
||||||
Text = Loc.GetString("strip-verb-get-data-text"),
|
Text = Loc.GetString("strip-verb-get-data-text"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")),
|
||||||
Act = () => StartOpeningStripper(args.User, component, true),
|
Act = () => StartOpeningStripper(args.User, component, true),
|
||||||
};
|
};
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
@@ -149,7 +149,7 @@ namespace Content.Server.Strip
|
|||||||
ExamineVerb verb = new()
|
ExamineVerb verb = new()
|
||||||
{
|
{
|
||||||
Text = Loc.GetString("strip-verb-get-data-text"),
|
Text = Loc.GetString("strip-verb-get-data-text"),
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")),
|
||||||
Act = () => StartOpeningStripper(args.User, component, true),
|
Act = () => StartOpeningStripper(args.User, component, true),
|
||||||
Category = VerbCategory.Examine,
|
Category = VerbCategory.Examine,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ namespace Content.Server.Tabletop
|
|||||||
|
|
||||||
ActivationVerb verb = new();
|
ActivationVerb verb = new();
|
||||||
verb.Text = Loc.GetString("tabletop-verb-play-game");
|
verb.Text = Loc.GetString("tabletop-verb-play-game");
|
||||||
verb.Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/die.svg.192dpi.png"));
|
verb.Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/die.svg.192dpi.png"));
|
||||||
verb.Act = () => OpenSessionFor(actor.PlayerSession, uid);
|
verb.Act = () => OpenSessionFor(actor.PlayerSession, uid);
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public sealed class MeleeWeaponSystem : SharedMeleeWeaponSystem
|
|||||||
Text = Loc.GetString("damage-examinable-verb-text"),
|
Text = Loc.GetString("damage-examinable-verb-text"),
|
||||||
Message = Loc.GetString("damage-examinable-verb-message"),
|
Message = Loc.GetString("damage-examinable-verb-message"),
|
||||||
Category = VerbCategory.Examine,
|
Category = VerbCategory.Examine,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/smite.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/smite.svg.192dpi.png")),
|
||||||
};
|
};
|
||||||
|
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public sealed partial class GunSystem
|
|||||||
Text = Loc.GetString("damage-examinable-verb-text"),
|
Text = Loc.GetString("damage-examinable-verb-text"),
|
||||||
Message = Loc.GetString("damage-examinable-verb-message"),
|
Message = Loc.GetString("damage-examinable-verb-message"),
|
||||||
Category = VerbCategory.Examine,
|
Category = VerbCategory.Examine,
|
||||||
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/smite.svg.192dpi.png")),
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/smite.svg.192dpi.png")),
|
||||||
};
|
};
|
||||||
|
|
||||||
args.Verbs.Add(verb);
|
args.Verbs.Add(verb);
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user