Profile editor - Reimplemented a way to get all keyframe times

New implementation does not add clutter to the core
This commit is contained in:
SpoinkyNL committed 2020-09-11 00:04:06 +02:00
1 parent 2151c01c1a
commit 3389bc0109
6 files changed
+63 -39

No files matched your search

@@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Artemis.Core;
using Stylet;
@@ -15,6 +17,11 @@ namespace Artemis.UI.Screens.ProfileEditor.LayerProperties
LayerPropertyViewModel = layerPropertyViewModel;
}
public List<TimeSpan> GetAllKeyframePositions()
{
return LayerProperty.Keyframes.Select(k => k.Position).ToList();
}
public void Dispose()
{
}
@@ -22,5 +29,6 @@ namespace Artemis.UI.Screens.ProfileEditor.LayerProperties
public interface ILayerPropertyTimelineViewModel : IScreen, IDisposable
{
List<TimeSpan> GetAllKeyframePositions();
}
}