mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Implemented keyframe easing
This commit is contained in:
1 parent
1a96707e5b
commit
ac7e0d4f78
33 files changed
+651
-164
No files matched your search
@@ -35,12 +35,14 @@ namespace Artemis.UI.Services
|
||||
public void ChangeSelectedProfile(Profile profile)
|
||||
{
|
||||
SelectedProfile = profile;
|
||||
UpdateProfilePreview();
|
||||
OnSelectedProfileChanged();
|
||||
}
|
||||
|
||||
public void UpdateSelectedProfile()
|
||||
{
|
||||
_profileService.UpdateProfile(SelectedProfile, false);
|
||||
UpdateProfilePreview();
|
||||
OnSelectedProfileElementUpdated();
|
||||
}
|
||||
|
||||
@@ -53,12 +55,15 @@ namespace Artemis.UI.Services
|
||||
public void UpdateSelectedProfileElement()
|
||||
{
|
||||
_profileService.UpdateProfile(SelectedProfile, true);
|
||||
UpdateProfilePreview();
|
||||
OnSelectedProfileElementUpdated();
|
||||
}
|
||||
|
||||
|
||||
private void UpdateProfilePreview()
|
||||
{
|
||||
if (SelectedProfile == null)
|
||||
return;
|
||||
var delta = CurrentTime - _lastUpdateTime;
|
||||
foreach (var layer in SelectedProfile.GetAllLayers())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user