Core - Refactored effects

Profile editor - Added effect creation
This commit is contained in:
Robert committed 2022-04-23 17:07:04 +02:00
1 parent e5ba48c7f4
commit 2bf36fbf20
61 files changed
+1005 -763

No files matched your search

@@ -12,11 +12,8 @@ namespace Artemis.Storage.Entities.Profile.Abstract
public List<LayerEffectEntity> LayerEffects { get; set; }
public List<PropertyEntity> PropertyEntities { get; set; }
public List<string> ExpandedPropertyGroups { get; set; }
public IConditionEntity DisplayCondition { get; set; }
public TimelineEntity Timeline { get; set; }
public NodeScriptEntity NodeScript { get; set; }
}
}
@@ -11,7 +11,6 @@ namespace Artemis.Storage.Entities.Profile
{
PropertyEntities = new List<PropertyEntity>();
LayerEffects = new List<LayerEffectEntity>();
ExpandedPropertyGroups = new List<string>();
}
public int Order { get; set; }
@@ -5,11 +5,9 @@ namespace Artemis.Storage.Entities.Profile
{
public class LayerEffectEntity
{
public Guid Id { get; set; }
public string ProviderId { get; set; }
public string EffectType { get; set; }
public string Name { get; set; }
public bool Suspended { get; set; }
public bool HasBeenRenamed { get; set; }
public int Order { get; set; }
@@ -14,7 +14,6 @@ namespace Artemis.Storage.Entities.Profile
AdaptionHints = new List<IAdaptionHintEntity>();
PropertyEntities = new List<PropertyEntity>();
LayerEffects = new List<LayerEffectEntity>();
ExpandedPropertyGroups = new List<string>();
}
public int Order { get; set; }
@@ -17,15 +17,17 @@ namespace Artemis.Storage.Migrations
foreach (FolderEntity profileEntityFolder in profileEntity.Folders)
{
profileEntityFolder.Suspended = false;
foreach (LayerEffectEntity layerEffectEntity in profileEntityFolder.LayerEffects)
layerEffectEntity.Suspended = false;
// Commented out during Avalonia port when Suspended was moved into the LayerEffect's LayerProperties
// foreach (LayerEffectEntity layerEffectEntity in profileEntityFolder.LayerEffects)
// layerEffectEntity.Suspended = false;
}
foreach (LayerEntity profileEntityLayer in profileEntity.Layers)
{
profileEntityLayer.Suspended = false;
foreach (LayerEffectEntity layerEffectEntity in profileEntityLayer.LayerEffects)
layerEffectEntity.Suspended = false;
// Commented out during Avalonia port when Suspended was moved into the LayerEffect's LayerProperties
// foreach (LayerEffectEntity layerEffectEntity in profileEntityLayer.LayerEffects)
// layerEffectEntity.Suspended = false;
}
repository.Upsert(profileEntity);