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
36 lines
795 B
C#
36 lines
795 B
C#
using CustomizePlus.Armatures.Data;
|
|
using OtterGui.Classes;
|
|
using System;
|
|
|
|
namespace CustomizePlus.Armatures.Events;
|
|
|
|
/// <summary>
|
|
/// Triggered when armature is changed
|
|
/// </summary>
|
|
public sealed class ArmatureChanged() : EventWrapper<ArmatureChanged.Type, Armature, object?, ArmatureChanged.Priority>(nameof(ArmatureChanged))
|
|
{
|
|
public enum Type
|
|
{
|
|
Created,
|
|
Deleted,
|
|
/// <summary>
|
|
/// Called when armature was rebound to other profile or bone template bindings were rebuilt
|
|
/// </summary>
|
|
Updated
|
|
}
|
|
|
|
public enum Priority
|
|
{
|
|
ProfileManager,
|
|
CustomizePlusIpc
|
|
}
|
|
|
|
public enum DeletionReason
|
|
{
|
|
Gone,
|
|
NoActiveProfiles,
|
|
ProfileManagerEvent,
|
|
TemplateEditorEvent
|
|
}
|
|
}
|