Added wooting layout images

Added timeline (WIP)
This commit is contained in:
SpoinkyNL committed 2020-01-01 23:12:55 +01:00
1 parent 9df2eb0f9c
commit 5d340199cc
124 files changed
+494 -67

No files matched your search

@@ -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}";
}
}
}