mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Profile editor - Reimplemented more of the timeline
This commit is contained in:
1 parent
bb687607ec
commit
e18af234c7
24 files changed
+294
-296
No files matched your search
@@ -11,13 +11,12 @@ namespace Artemis.UI.PropertyInput
|
||||
public class BrushPropertyInputViewModel : PropertyInputViewModel<LayerBrushReference>
|
||||
{
|
||||
private readonly IPluginService _pluginService;
|
||||
private readonly IRenderElementService _renderElementService;
|
||||
private List<LayerBrushDescriptor> _descriptors;
|
||||
|
||||
public BrushPropertyInputViewModel(LayerProperty<LayerBrushReference> layerProperty, IProfileEditorService profileEditorService,
|
||||
IRenderElementService renderElementService, IPluginService pluginService) : base(layerProperty, profileEditorService)
|
||||
public BrushPropertyInputViewModel(LayerProperty<LayerBrushReference> layerProperty,
|
||||
IProfileEditorService profileEditorService,
|
||||
IPluginService pluginService) : base(layerProperty, profileEditorService)
|
||||
{
|
||||
_renderElementService = renderElementService;
|
||||
_pluginService = pluginService;
|
||||
|
||||
_pluginService.PluginEnabled += PluginServiceOnPluginLoaded;
|
||||
@@ -54,11 +53,8 @@ namespace Artemis.UI.PropertyInput
|
||||
|
||||
protected override void OnInputValueApplied()
|
||||
{
|
||||
if (LayerProperty.ProfileElement is Layer layer)
|
||||
{
|
||||
_renderElementService.RemoveLayerBrush(layer);
|
||||
_renderElementService.InstantiateLayerBrush(layer);
|
||||
}
|
||||
if (LayerProperty.ProfileElement is Layer layer)
|
||||
layer.ChangeLayerBrush(SelectedDescriptor);
|
||||
}
|
||||
|
||||
private void SetBrushByDescriptor(LayerBrushDescriptor value)
|
||||
|
||||
Reference in new issue
Block a user