mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +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
@@ -19,8 +19,8 @@ using SkiaSharp;
|
||||
namespace Artemis.Core.Models.Profile
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a layer on a profile. To create new layers use the <see cref="LayerService" /> by injecting
|
||||
/// <see cref="ILayerService" /> into your code
|
||||
/// Represents a layer on a profile. To create new layers use the <see cref="RenderElementService" /> by injecting
|
||||
/// <see cref="IRenderElementService" /> into your code
|
||||
/// </summary>
|
||||
public sealed class Layer : RenderProfileElement
|
||||
{
|
||||
@@ -72,8 +72,7 @@ namespace Artemis.Core.Models.Profile
|
||||
}
|
||||
|
||||
internal LayerEntity LayerEntity { get; set; }
|
||||
internal override PropertiesEntity PropertiesEntity => LayerEntity;
|
||||
internal override EffectsEntity EffectsEntity => LayerEntity;
|
||||
internal override RenderElementEntity RenderElementEntity => LayerEntity;
|
||||
|
||||
/// <summary>
|
||||
/// A collection of all the LEDs this layer is assigned to.
|
||||
@@ -158,6 +157,7 @@ namespace Artemis.Core.Models.Profile
|
||||
}
|
||||
|
||||
// Conditions
|
||||
RenderElementEntity.RootDisplayCondition = DisplayConditionGroup?.DisplayConditionGroupEntity;
|
||||
DisplayConditionGroup?.ApplyToEntity();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user