mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
UI - Restructured layer property VMs
This commit is contained in:
1 parent
41b3c77210
commit
54081b591b
11 files changed
+163
-234
No files matched your search
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Artemis.Core.Models.Profile;
|
||||
using Artemis.Core.Models.Profile.LayerProperties;
|
||||
using Artemis.Core.Plugins.Models;
|
||||
using Artemis.Core.Services.Interfaces;
|
||||
using SkiaSharp;
|
||||
@@ -29,7 +27,7 @@ namespace Artemis.Core.Plugins.LayerBrush
|
||||
/// </summary>
|
||||
public PluginInfo PluginInfo => Descriptor.LayerBrushProvider.PluginInfo;
|
||||
|
||||
internal virtual LayerPropertyGroup BaseProperties => null;
|
||||
public virtual LayerPropertyGroup BaseProperties => null;
|
||||
|
||||
/// <summary>
|
||||
/// Called when the brush is being removed from the layer
|
||||
@@ -62,22 +60,5 @@ namespace Artemis.Core.Plugins.LayerBrush
|
||||
internal virtual void InitializeProperties(ILayerService layerService, string path)
|
||||
{
|
||||
}
|
||||
|
||||
internal virtual void ApplyToEntity()
|
||||
{
|
||||
}
|
||||
|
||||
internal virtual void UpdateProperties(double deltaTime)
|
||||
{
|
||||
}
|
||||
|
||||
internal virtual void OverrideProperties(TimeSpan overrideTime)
|
||||
{
|
||||
}
|
||||
|
||||
internal virtual IReadOnlyCollection<BaseLayerProperty> GetAllLayerProperties()
|
||||
{
|
||||
return new List<BaseLayerProperty>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,7 @@ namespace Artemis.Core.Plugins.LayerBrush
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
internal override LayerPropertyGroup BaseProperties => Properties;
|
||||
public override LayerPropertyGroup BaseProperties => Properties;
|
||||
|
||||
internal override void InitializeProperties(ILayerService layerService, string path)
|
||||
{
|
||||
@@ -56,22 +56,17 @@ namespace Artemis.Core.Plugins.LayerBrush
|
||||
PropertiesInitialized = true;
|
||||
}
|
||||
|
||||
internal override void ApplyToEntity()
|
||||
internal virtual void ApplyToEntity()
|
||||
{
|
||||
Properties.ApplyToEntity();
|
||||
}
|
||||
|
||||
internal override void UpdateProperties(double deltaTime)
|
||||
{
|
||||
Properties.Update(deltaTime);
|
||||
}
|
||||
|
||||
internal override void OverrideProperties(TimeSpan overrideTime)
|
||||
internal virtual void OverrideProperties(TimeSpan overrideTime)
|
||||
{
|
||||
Properties.Override(overrideTime);
|
||||
}
|
||||
|
||||
internal override IReadOnlyCollection<BaseLayerProperty> GetAllLayerProperties()
|
||||
internal virtual IReadOnlyCollection<BaseLayerProperty> GetAllLayerProperties()
|
||||
{
|
||||
return Properties.GetAllLayerProperties();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user