Core - Layer refactor WIP

This commit is contained in:
Robert authored and SpoinkyNL committed 2020-09-08 19:17:04 +02:00
1 parent be897b99f7
commit d37420e462
33 files changed
+941 -895

No files matched your search

@@ -1,5 +1,4 @@
using System;
using Artemis.Core.Services;
namespace Artemis.Core.LayerBrushes
{
@@ -33,11 +32,11 @@ namespace Artemis.Core.LayerBrushes
internal set => _properties = value;
}
internal void InitializeProperties(IRenderElementService renderElementService)
internal void InitializeProperties()
{
Properties = Activator.CreateInstance<T>();
Properties.LayerBrush = this;
Properties.InitializeProperties(renderElementService, Layer, "LayerBrush.");
Properties.Initialize(Layer, "LayerBrush.", PluginInfo);
PropertiesInitialized = true;
EnableLayerBrush();
@@ -30,11 +30,11 @@ namespace Artemis.Core.LayerEffects
internal set => _properties = value;
}
internal void InitializeProperties(IRenderElementService renderElementService)
internal void InitializeProperties()
{
Properties = Activator.CreateInstance<T>();
Properties.LayerEffect = this;
Properties.InitializeProperties(renderElementService, ProfileElement, PropertyRootPath);
Properties.Initialize(ProfileElement, PropertyRootPath, PluginInfo);
PropertiesInitialized = true;
EnableLayerEffect();