Removed "Limit to my creatures", the code now automatically detects this for all owned actors. If you liked to apply edits to minions and stuff of other players... too bad. Implemented UI for setting profiles to NPC, minions and mounts (still WIP, will probably have to implement multiple characters per profile)
47 lines
1.1 KiB
C#
47 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,
|
|
ApplyToCurrentlyActiveCharacterChanged,
|
|
ChangedDefaultProfile,
|
|
TemporaryProfileAdded,
|
|
TemporaryProfileDeleted,
|
|
/*
|
|
ToggledProfile,
|
|
AddedTemplate,
|
|
RemovedTemplate,
|
|
MovedTemplate,
|
|
ChangedTemplate*/
|
|
}
|
|
|
|
public enum Priority
|
|
{
|
|
ProfileFileSystemSelector = -2,
|
|
TemplateFileSystemSelector = -1,
|
|
ProfileFileSystem,
|
|
ArmatureManager,
|
|
TemplateManager,
|
|
CustomizePlusLegacyIpc
|
|
}
|
|
}
|