mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
UI - My poor UI :< I regret starting this refactor
This commit is contained in:
1 parent
bbeb471754
commit
5e3d23af41
13 files changed
+130
-59
No files matched your search
@@ -74,18 +74,11 @@ namespace Artemis.UI.Services
|
||||
{
|
||||
if (SelectedProfile == null)
|
||||
return;
|
||||
|
||||
var delta = CurrentTime - _lastUpdateTime;
|
||||
foreach (var layer in SelectedProfile.GetAllLayers())
|
||||
{
|
||||
// Override keyframe progress
|
||||
foreach (var baseLayerProperty in layer.Properties)
|
||||
baseLayerProperty.KeyframeEngine?.OverrideProgress(CurrentTime);
|
||||
|
||||
// Force layer shape to redraw
|
||||
layer.LayerShape?.CalculateRenderProperties();
|
||||
// Manually update the layer's engine and brush
|
||||
foreach (var property in layer.Properties)
|
||||
property.KeyframeEngine?.Update(delta.TotalSeconds);
|
||||
layer.OverrideProgress(CurrentTime);
|
||||
layer.LayerBrush?.Update(delta.TotalSeconds);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user