Color brush - Added linear gradient rotation

Profile editor - Updated conditions UI
This commit is contained in:
SpoinkyNL committed 2020-08-03 22:41:13 +02:00
1 parent 7b1cefca8b
commit 10c839f8c9
21 files changed
+400 -150

No files matched your search

@@ -8,7 +8,7 @@ namespace Artemis.Storage.Entities.Profile.Abstract
public TimeSpan StartSegmentLength { get; set; }
public TimeSpan MainSegmentLength { get; set; }
public TimeSpan EndSegmentLength { get; set; }
public bool RepeatMainSegment { get; set; }
public bool DisplayContinuously { get; set; }
public bool AlwaysFinishTimeline { get; set; }
public List<LayerEffectEntity> LayerEffects { get; set; }
@@ -20,8 +20,10 @@ namespace Artemis.Storage.Migrations
{
if (folder.PropertyEntities.Any(p => p.KeyframeEntities.Any()))
folder.MainSegmentLength = folder.PropertyEntities.Where(p => p.KeyframeEntities.Any()).Max(p => p.KeyframeEntities.Max(k => k.Position));
if (folder.MainSegmentLength == TimeSpan.Zero)
if (folder.MainSegmentLength == TimeSpan.Zero)
folder.MainSegmentLength = TimeSpan.FromSeconds(5);
folder.DisplayContinuously = true;
}
foreach (var layer in profileEntity.Layers.Where(l => l.MainSegmentLength == TimeSpan.Zero))
@@ -30,6 +32,8 @@ namespace Artemis.Storage.Migrations
layer.MainSegmentLength = layer.PropertyEntities.Where(p => p.KeyframeEntities.Any()).Max(p => p.KeyframeEntities.Max(k => k.Position));
if (layer.MainSegmentLength == TimeSpan.Zero)
layer.MainSegmentLength = TimeSpan.FromSeconds(5);
layer.DisplayContinuously = true;
}
repository.Update(profileEntity);