mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Added layer shapes, editor is still WIP
This commit is contained in:
1 parent
70bf0e1c43
commit
ddce69e8f0
115 files changed
+1949
-1189
No files matched your search
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using Artemis.Core.Models.Profile;
|
||||
using Artemis.Core.Models.Profile.Abstract;
|
||||
using Artemis.Core.Plugins.LayerElement;
|
||||
|
||||
namespace Artemis.UI.Services.Interfaces
|
||||
{
|
||||
@@ -9,18 +7,15 @@ namespace Artemis.UI.Services.Interfaces
|
||||
{
|
||||
Profile SelectedProfile { get; }
|
||||
ProfileElement SelectedProfileElement { get; }
|
||||
LayerElement SelectedLayerElement { get; }
|
||||
|
||||
void ChangeSelectedProfile(Profile profile);
|
||||
void UpdateSelectedProfile();
|
||||
void ChangeSelectedProfileElement(ProfileElement profileElement);
|
||||
void UpdateSelectedProfileElement();
|
||||
void ChangeSelectedLayerElement(LayerElement layerElement);
|
||||
|
||||
event EventHandler SelectedProfileChanged;
|
||||
event EventHandler SelectedProfileUpdated;
|
||||
event EventHandler SelectedProfileElementChanged;
|
||||
event EventHandler SelectedProfileElementUpdated;
|
||||
event EventHandler SelectedLayerElementChanged;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using Artemis.Core.Models.Profile;
|
||||
using Artemis.Core.Models.Profile.Abstract;
|
||||
using Artemis.Core.Plugins.LayerElement;
|
||||
using Artemis.Core.Services.Storage.Interfaces;
|
||||
using Artemis.UI.Services.Interfaces;
|
||||
|
||||
@@ -18,7 +16,6 @@ namespace Artemis.UI.Services
|
||||
|
||||
public Profile SelectedProfile { get; private set; }
|
||||
public ProfileElement SelectedProfileElement { get; private set; }
|
||||
public LayerElement SelectedLayerElement { get; private set; }
|
||||
|
||||
public void ChangeSelectedProfile(Profile profile)
|
||||
{
|
||||
@@ -44,17 +41,10 @@ namespace Artemis.UI.Services
|
||||
OnSelectedProfileElementUpdated();
|
||||
}
|
||||
|
||||
public void ChangeSelectedLayerElement(LayerElement layerElement)
|
||||
{
|
||||
SelectedLayerElement = layerElement;
|
||||
OnSelectedLayerElementChanged();
|
||||
}
|
||||
|
||||
public event EventHandler SelectedProfileChanged;
|
||||
public event EventHandler SelectedProfileUpdated;
|
||||
public event EventHandler SelectedProfileElementChanged;
|
||||
public event EventHandler SelectedProfileElementUpdated;
|
||||
public event EventHandler SelectedLayerElementChanged;
|
||||
|
||||
protected virtual void OnSelectedProfileElementUpdated()
|
||||
{
|
||||
@@ -75,10 +65,5 @@ namespace Artemis.UI.Services
|
||||
{
|
||||
SelectedProfileChanged?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
protected virtual void OnSelectedLayerElementChanged()
|
||||
{
|
||||
SelectedLayerElementChanged?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user