mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Added keyframe creation outside the timeline
Added existing shape moving
This commit is contained in:
1 parent
ce2f05b135
commit
e9677f2070
22 files changed
+178
-148
No files matched your search
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Artemis.Core.Models.Profile;
|
||||
using Artemis.Core.Models.Profile.LayerProperties;
|
||||
|
||||
namespace Artemis.UI.Services.Interfaces
|
||||
{
|
||||
@@ -13,6 +14,7 @@ namespace Artemis.UI.Services.Interfaces
|
||||
void UpdateSelectedProfile();
|
||||
void ChangeSelectedProfileElement(ProfileElement profileElement);
|
||||
void UpdateSelectedProfileElement();
|
||||
void UpdateProfilePreview();
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when a new profile is selected
|
||||
@@ -38,5 +40,10 @@ namespace Artemis.UI.Services.Interfaces
|
||||
/// Occurs when the current editor time is changed
|
||||
/// </summary>
|
||||
event EventHandler CurrentTimeChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the profile preview has been updated
|
||||
/// </summary>
|
||||
event EventHandler ProfilePreviewUpdated;
|
||||
}
|
||||
}
|
||||
@@ -60,7 +60,7 @@ namespace Artemis.UI.Services
|
||||
}
|
||||
|
||||
|
||||
private void UpdateProfilePreview()
|
||||
public void UpdateProfilePreview()
|
||||
{
|
||||
if (SelectedProfile == null)
|
||||
return;
|
||||
@@ -78,6 +78,7 @@ namespace Artemis.UI.Services
|
||||
}
|
||||
|
||||
_lastUpdateTime = CurrentTime;
|
||||
OnProfilePreviewUpdated();
|
||||
}
|
||||
|
||||
public event EventHandler SelectedProfileChanged;
|
||||
@@ -85,6 +86,7 @@ namespace Artemis.UI.Services
|
||||
public event EventHandler SelectedProfileElementChanged;
|
||||
public event EventHandler SelectedProfileElementUpdated;
|
||||
public event EventHandler CurrentTimeChanged;
|
||||
public event EventHandler ProfilePreviewUpdated;
|
||||
|
||||
protected virtual void OnSelectedProfileElementUpdated()
|
||||
{
|
||||
@@ -110,5 +112,10 @@ namespace Artemis.UI.Services
|
||||
{
|
||||
CurrentTimeChanged?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
protected virtual void OnProfilePreviewUpdated()
|
||||
{
|
||||
ProfilePreviewUpdated?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user