Added ability to apply profile to any currently logged in character Functional UI for player character, retainers and mannequins Almost completely switched to using ActorIdentifier instead of character name Migration code for ActorIdentifier instead of character names IPC is not functional for now (see todos)
48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using CustomizePlus.Profiles.Data;
|
|
using OtterGui.Classes;
|
|
using System;
|
|
|
|
namespace CustomizePlus.Profiles.Events;
|
|
|
|
/// <summary>
|
|
/// Triggered when profile is changed
|
|
/// </summary>
|
|
public sealed class ProfileChanged() : EventWrapper<ProfileChanged.Type, Profile?, object?, ProfileChanged.Priority>(nameof(ProfileChanged))
|
|
{
|
|
public enum Type
|
|
{
|
|
Created,
|
|
Deleted,
|
|
Renamed,
|
|
Toggled,
|
|
ChangedCharacter,
|
|
AddedTemplate,
|
|
RemovedTemplate,
|
|
MovedTemplate,
|
|
ChangedTemplate,
|
|
ReloadedAll,
|
|
WriteProtection,
|
|
LimitLookupToOwnedChanged,
|
|
ApplyToCurrentlyActiveCharacterChanged,
|
|
ChangedDefaultProfile,
|
|
TemporaryProfileAdded,
|
|
TemporaryProfileDeleted,
|
|
/*
|
|
ToggledProfile,
|
|
AddedTemplate,
|
|
RemovedTemplate,
|
|
MovedTemplate,
|
|
ChangedTemplate*/
|
|
}
|
|
|
|
public enum Priority
|
|
{
|
|
ProfileFileSystemSelector = -2,
|
|
TemplateFileSystemSelector = -1,
|
|
ProfileFileSystem,
|
|
ArmatureManager,
|
|
TemplateManager,
|
|
CustomizePlusLegacyIpc
|
|
}
|
|
}
|