mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Added wooting layout images
Added timeline (WIP)
This commit is contained in:
1 parent
9df2eb0f9c
commit
5d340199cc
124 files changed
+494
-67
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using Stylet;
|
||||
|
||||
namespace Artemis.UI.Screens.Module.ProfileEditor.LayerProperties.Timeline
|
||||
{
|
||||
public class TimelineKeyframeViewModel : PropertyChangedBase
|
||||
{
|
||||
private const double BaseSize = 60.0;
|
||||
|
||||
public TimeSpan Position { get; set; }
|
||||
|
||||
public double X { get; set; }
|
||||
public string Timestamp { get; set; }
|
||||
|
||||
public void Update(int pixelsPerSecond)
|
||||
{
|
||||
// var timelinePartWidth = pixelsPerSecond % BaseSize + BaseSize;
|
||||
// var millisecondsPerPart = extraParts > 0 ? BaseSize * 1000 / extraParts : BaseSize * 1000;
|
||||
X = pixelsPerSecond * Position.TotalSeconds;
|
||||
Timestamp = $"{Math.Floor(Position.TotalSeconds):00}.{Position.Milliseconds:000}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user