:trollface:

This commit is contained in:
deltanedas 2024-09-22 03:45:52 +01:00
parent 4d6af523bc
commit f6480d0c32
2 changed files with 1 additions and 32 deletions

View File

@ -1,10 +1,6 @@
using Content.Client.Actions;
using Content.Client.Actions;
using Content.Client.Mapping;
using Content.Shared.Administration;
using Robust.Client.UserInterface;
using Robust.Shared.Console;
using YamlDotNet.RepresentationModel;
namespace Content.Client.Commands;
@ -50,7 +46,7 @@ public sealed class LoadActionsCommand : LocalizedCommands
{
if (args.Length != 1)
{
LoadActs(); // DeltaV - Load from a file dialogue instead
shell.WriteLine(Help);
return;
}
@ -63,24 +59,4 @@ public sealed class LoadActionsCommand : LocalizedCommands
shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error"));
}
}
/// <summary>
/// DeltaV - Load actions from a file stream instead
/// </summary>
private static async void LoadActs()
{
var fileMan = IoCManager.Resolve<IFileDialogManager>();
var actMan = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<ActionsSystem>();
var stream = await fileMan.OpenFile(new FileDialogFilters(new FileDialogFilters.Group("yml")));
if (stream is null)
return;
var reader = new StreamReader(stream);
var yamlStream = new YamlStream();
yamlStream.Load(reader);
actMan.LoadActionAssignments(yamlStream);
reader.Close();
}
}

View File

@ -1219,13 +1219,6 @@
- ClothingOuterWinterQM
- ClothingOuterWinterRD
- ClothingOuterChiefJustice # DeltaV - Chief Justice
- ClothingNeckMantleCap
- ClothingNeckMantleCE
- ClothingNeckMantleCMO
- ClothingNeckMantleHOP
- ClothingNeckMantleHOS
- ClothingNeckMantleRD
- ClothingNeckMantleQM
- ClothingNeckCloakCJ # DeltaV - Chief Justice
- ClothingOuterStasecSweater # DeltaV - added stasec sweater to uniform printer.
- ClothingOuterWinterMusician