mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-23 07:57:46 +01:00
Add support for .dat files.
This commit is contained in:
parent
edb05946dd
commit
6a94626a13
10 changed files with 416 additions and 14 deletions
|
|
@ -277,7 +277,7 @@ public sealed class CustomizationService : AsyncServiceWrapper<ICustomizationMan
|
|||
private static CustomizeFlag FixValues(CustomizationSet set, ref Customize customize)
|
||||
{
|
||||
CustomizeFlag flags = 0;
|
||||
foreach (var idx in Enum.GetValues<CustomizeIndex>())
|
||||
foreach (var idx in CustomizationExtensions.AllBasic)
|
||||
{
|
||||
if (set.IsAvailable(idx))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using Dalamud.Game.ClientState.Keys;
|
|||
using Dalamud.Game.ClientState.Objects;
|
||||
using Dalamud.Game.Command;
|
||||
using Dalamud.Game.Gui;
|
||||
using Dalamud.Interface.DragDrop;
|
||||
using Dalamud.IoC;
|
||||
using Dalamud.Plugin;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
|
@ -32,6 +33,7 @@ public class DalamudServices
|
|||
services.AddSingleton(KeyState);
|
||||
services.AddSingleton(this);
|
||||
services.AddSingleton(PluginInterface.UiBuilder);
|
||||
services.AddSingleton(DragDropManager);
|
||||
}
|
||||
|
||||
// @formatter:off
|
||||
|
|
@ -45,5 +47,6 @@ public class DalamudServices
|
|||
[PluginService][RequiredVersion("1.0")] public TargetManager Targets { get; private set; } = null!;
|
||||
[PluginService][RequiredVersion("1.0")] public ObjectTable Objects { get; private set; } = null!;
|
||||
[PluginService][RequiredVersion("1.0")] public KeyState KeyState { get; private set; } = null!;
|
||||
[PluginService][RequiredVersion("1.0")] public IDragDropManager DragDropManager { get; private set; } = null!;
|
||||
// @formatter:on
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,8 @@ public static class ServiceManager
|
|||
.AddSingleton<PenumbraAutoRedraw>()
|
||||
.AddSingleton<JobService>()
|
||||
.AddSingleton<CustomizeUnlockManager>()
|
||||
.AddSingleton<ItemUnlockManager>();
|
||||
.AddSingleton<ItemUnlockManager>()
|
||||
.AddSingleton<DatFileService>();
|
||||
|
||||
private static IServiceCollection AddDesigns(this IServiceCollection services)
|
||||
=> services.AddSingleton<DesignManager>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue