mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Profile editor - Implemented keyframe selection, movement, deletion
Profile editor - Added command scoping
This commit is contained in:
1 parent
a1f7f6dff8
commit
913117ad0a
15 files changed
+515
-172
No files matched your search
@@ -213,7 +213,7 @@ namespace Artemis.Core
|
||||
SetCurrentValue(CoreJson.DeserializeObject<T>(json)!, null);
|
||||
}
|
||||
|
||||
private void ReapplyUpdate()
|
||||
internal void ReapplyUpdate()
|
||||
{
|
||||
// Create a timeline with the same position but a delta of zero
|
||||
Timeline temporaryTimeline = new();
|
||||
@@ -291,6 +291,7 @@ namespace Artemis.Core
|
||||
KeyframesEnabled = true;
|
||||
|
||||
SortKeyframes();
|
||||
ReapplyUpdate();
|
||||
OnKeyframeAdded();
|
||||
}
|
||||
|
||||
@@ -323,7 +324,9 @@ namespace Artemis.Core
|
||||
return;
|
||||
|
||||
_keyframes.Remove(keyframe);
|
||||
|
||||
SortKeyframes();
|
||||
ReapplyUpdate();
|
||||
OnKeyframeRemoved();
|
||||
}
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace Artemis.Core
|
||||
{
|
||||
SetAndNotify(ref _position, value);
|
||||
LayerProperty.SortKeyframes();
|
||||
LayerProperty.ReapplyUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user