Profile editor - Redesigned adding/removing timeline segments

General module - Added some basic window information to the data model
Profiles - Don't render when opacity is 0
Profile editor - Render non-selected layers in their main segment
Profile editor - Condition editor fixes
This commit is contained in:
SpoinkyNL committed 2020-07-24 23:04:21 +02:00
1 parent 732ee2f429
commit 64a1010100
39 files changed
+831 -261

No files matched your search

@@ -164,7 +164,7 @@ namespace Artemis.Core.Models.Profile
public TimeSpan TimelinePosition
{
get => _timelinePosition;
private set => SetAndNotify(ref _timelinePosition, value);
protected set => SetAndNotify(ref _timelinePosition, value);
}
/// <summary>
@@ -212,13 +212,19 @@ namespace Artemis.Core.Models.Profile
// Skip to the last segment if conditions are no longer met
if (!AlwaysFinishTimeline && TimelinePosition < mainSegmentEnd)
TimelinePosition = mainSegmentEnd;
else if (TimelinePosition >= TimelineLength)
TimelinePosition = TimelineLength;
}
return (TimelinePosition - oldPosition).TotalSeconds;
}
/// <summary>
/// Overrides the progress of the element
/// </summary>
/// <param name="timeOverride"></param>
/// <param name="stickToMainSegment"></param>
public abstract void OverrideProgress(TimeSpan timeOverride, bool stickToMainSegment);
#endregion
#region Effects