mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 20:06:33 +00:00
Core - Renamed LayerService to RenderElementService
Display conditions - Implemented persistent storage
This commit is contained in:
1 parent
0dc77c0b6e
commit
f7453331bf
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user