ArmatureChanged.Type.Rebound -> Updated IsPendingProfileRebind is now being set instead of calling RebuildBoneTemplateBinding and that function is called as a part of rebind process (not always though, pending rewrite) Profiles can no longer be toggled in the UI while editor is active ProfileChanged is no longer used in IPC, instead we are fully relying on armature events Added warnings to legacy IPC messages to not use it
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,
|
|
ChangedCharacterName,
|
|
AddedTemplate,
|
|
RemovedTemplate,
|
|
MovedTemplate,
|
|
ChangedTemplate,
|
|
ReloadedAll,
|
|
WriteProtection,
|
|
LimitLookupToOwnedChanged,
|
|
ChangedDefaultProfile,
|
|
TemporaryProfileAdded,
|
|
TemporaryProfileDeleted,
|
|
/*
|
|
ToggledProfile,
|
|
AddedTemplate,
|
|
RemovedTemplate,
|
|
MovedTemplate,
|
|
ChangedTemplate*/
|
|
}
|
|
|
|
public enum Priority
|
|
{
|
|
ProfileFileSystemSelector = -2,
|
|
TemplateFileSystemSelector = -1,
|
|
ProfileFileSystem,
|
|
ArmatureManager,
|
|
TemplateManager,
|
|
CustomizePlusLegacyIpc
|
|
}
|
|
}
|