mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Core - Renamed LayerService to RenderElementService
Display conditions - Implemented persistent storage
This commit is contained in:
1 parent
16c2b7f7fd
commit
0e873a48cf
32 files changed
+209
-111
No files matched your search
@@ -113,7 +113,7 @@ namespace Artemis.Core.Plugins.LayerBrush.Abstract
|
||||
|
||||
// Not only is this needed to initialize properties on the layer brushes, it also prevents implementing anything
|
||||
// but LayerBrush<T> and RgbNetLayerBrush<T> outside the core
|
||||
internal abstract void Initialize(ILayerService layerService);
|
||||
internal abstract void Initialize(IRenderElementService renderElementService);
|
||||
|
||||
internal abstract void InternalRender(SKCanvas canvas, SKImageInfo canvasInfo, SKPath path, SKPaint paint);
|
||||
|
||||
|
||||
@@ -27,9 +27,9 @@ namespace Artemis.Core.Plugins.LayerBrush.Abstract
|
||||
Render(canvas, canvasInfo, path, paint);
|
||||
}
|
||||
|
||||
internal override void Initialize(ILayerService layerService)
|
||||
internal override void Initialize(IRenderElementService renderElementService)
|
||||
{
|
||||
InitializeProperties(layerService);
|
||||
InitializeProperties(renderElementService);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ namespace Artemis.Core.Plugins.LayerBrush.Abstract
|
||||
internal set => _properties = value;
|
||||
}
|
||||
|
||||
internal void InitializeProperties(ILayerService layerService)
|
||||
internal void InitializeProperties(IRenderElementService renderElementService)
|
||||
{
|
||||
Properties = Activator.CreateInstance<T>();
|
||||
Properties.LayerBrush = this;
|
||||
Properties.InitializeProperties(layerService, Layer, "LayerBrush.");
|
||||
Properties.InitializeProperties(renderElementService, Layer, "LayerBrush.");
|
||||
PropertiesInitialized = true;
|
||||
|
||||
EnableLayerBrush();
|
||||
|
||||
@@ -39,12 +39,12 @@ namespace Artemis.Core.Plugins.LayerBrush.Abstract
|
||||
LedGroup.Brush = GetBrush();
|
||||
}
|
||||
|
||||
internal override void Initialize(ILayerService layerService)
|
||||
internal override void Initialize(IRenderElementService renderElementService)
|
||||
{
|
||||
LedGroup = new ListLedGroup();
|
||||
Layer.RenderPropertiesUpdated += LayerOnRenderPropertiesUpdated;
|
||||
|
||||
InitializeProperties(layerService);
|
||||
InitializeProperties(renderElementService);
|
||||
UpdateLedGroup();
|
||||
}
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace Artemis.Core.Plugins.LayerEffect.Abstract
|
||||
|
||||
// Not only is this needed to initialize properties on the layer effects, it also prevents implementing anything
|
||||
// but LayerEffect<T> outside the core
|
||||
internal abstract void Initialize(ILayerService layerService);
|
||||
internal abstract void Initialize(IRenderElementService renderElementService);
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -36,19 +36,19 @@ namespace Artemis.Core.Plugins.LayerEffect.Abstract
|
||||
internal set => _properties = value;
|
||||
}
|
||||
|
||||
internal void InitializeProperties(ILayerService layerService)
|
||||
internal void InitializeProperties(IRenderElementService renderElementService)
|
||||
{
|
||||
Properties = Activator.CreateInstance<T>();
|
||||
Properties.LayerEffect = this;
|
||||
Properties.InitializeProperties(layerService, ProfileElement, PropertyRootPath);
|
||||
Properties.InitializeProperties(renderElementService, ProfileElement, PropertyRootPath);
|
||||
PropertiesInitialized = true;
|
||||
|
||||
EnableLayerEffect();
|
||||
}
|
||||
|
||||
internal override void Initialize(ILayerService layerService)
|
||||
internal override void Initialize(IRenderElementService renderElementService)
|
||||
{
|
||||
InitializeProperties(layerService);
|
||||
InitializeProperties(renderElementService);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user