* Armature manager now assigns permanent ActorIdentifier to armatures * Slight changes to make sure penumbra redraw doesn't break temporary profiles * Profile selection UI now gets updated on login/logout in order to display correct colors * Changed logic of setting Armature.IsVisible * Implemented OnProfileUpdate IPC
33 lines
649 B
C#
33 lines
649 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,
|
|
Rebound
|
|
}
|
|
|
|
public enum Priority
|
|
{
|
|
ProfileManager,
|
|
CustomizePlusIpc
|
|
}
|
|
|
|
public enum DeletionReason
|
|
{
|
|
Gone,
|
|
NoActiveProfiles,
|
|
ProfileManagerEvent,
|
|
TemplateEditorEvent
|
|
}
|
|
}
|