Started implementing logic behind the timeline UI

This commit is contained in:
SpoinkyNL committed 2020-01-05 22:10:37 +01:00
1 parent e67b44b741
commit 8f438abe49
31 files changed
+501 -408

No files matched your search

+3 -1
View File
@@ -12,7 +12,7 @@
<AssemblyName>Artemis.Core</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ShouldIncludeNativeSkiaSharp>false</ShouldIncludeNativeSkiaSharp>
<ShouldIncludeNativeSkiaSharp>false</ShouldIncludeNativeSkiaSharp>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
@@ -149,6 +149,7 @@
<Compile Include="Extensions\TypeExtensions.cs" />
<Compile Include="JsonConverters\SKColorConverter.cs" />
<Compile Include="Models\DataModelDescription.cs" />
<Compile Include="Models\Profile\Keyframe.cs" />
<Compile Include="Models\Profile\LayerShapes\Ellipse.cs" />
<Compile Include="Models\Profile\LayerShapes\Fill.cs" />
<Compile Include="Models\Profile\LayerShapes\Polygon.cs" />
@@ -160,6 +161,7 @@
<Compile Include="Ninject\LoggerProvider.cs" />
<Compile Include="Ninject\PluginSettingsProvider.cs" />
<Compile Include="Ninject\SettingsServiceProvider.cs" />
<Compile Include="Models\Profile\LayerProperty.cs" />
<Compile Include="Plugins\Abstract\ModuleDataModel.cs" />
<Compile Include="Plugins\Abstract\ModuleViewModel.cs" />
<Compile Include="Plugins\Abstract\ProfileModule.cs" />
@@ -0,0 +1,13 @@
using System;
namespace Artemis.Core.Models.Profile
{
public class Keyframe
{
public Layer Layer { get; set; }
public LayerProperty Property { get; set; }
public TimeSpan Position { get; set; }
public object Value { get; set; }
}
}
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
namespace Artemis.Core.Models.Profile
{
public class LayerProperty
{
internal LayerProperty(Layer layer, LayerProperty parent)
{
Layer = layer;
Parent = parent;
Children = new List<LayerProperty>();
}
public Layer Layer { get; }
public LayerProperty Parent { get; }
public List<LayerProperty> Children { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public Type Type { get; set; }
public object BaseValue { get; set; }
public List<Keyframe> Keyframes { get; set; }
}
}