Core - Renamed LayerService to RenderElementService

Display conditions - Implemented persistent storage
This commit is contained in:
SpoinkyNL committed 2020-07-10 23:00:35 +02:00
1 parent 0dc77c0b6e
commit f7453331bf
32 files changed
+209 -111

No files matched your search

@@ -13,14 +13,14 @@ namespace Artemis.UI.PropertyInput
{
public class BrushPropertyInputViewModel : PropertyInputViewModel<LayerBrushReference>
{
private readonly ILayerService _layerService;
private readonly IRenderElementService _renderElementService;
private readonly IPluginService _pluginService;
private List<LayerBrushDescriptor> _descriptors;
public BrushPropertyInputViewModel(LayerProperty<LayerBrushReference> layerProperty, IProfileEditorService profileEditorService,
ILayerService layerService, IPluginService pluginService) : base(layerProperty, profileEditorService)
IRenderElementService renderElementService, IPluginService pluginService) : base(layerProperty, profileEditorService)
{
_layerService = layerService;
_renderElementService = renderElementService;
_pluginService = pluginService;
_pluginService.PluginEnabled += PluginServiceOnPluginLoaded;
@@ -59,8 +59,8 @@ namespace Artemis.UI.PropertyInput
{
if (LayerProperty.ProfileElement is Layer layer)
{
_layerService.RemoveLayerBrush(layer);
_layerService.InstantiateLayerBrush(layer);
_renderElementService.RemoveLayerBrush(layer);
_renderElementService.InstantiateLayerBrush(layer);
}
}