Layers - Added support for rendering multiple timelines at once

Events - Added trigger modes
This commit is contained in:
Robert committed 2020-10-27 20:20:40 +01:00
1 parent c6a06f0131
commit 86d6e540d7
21 files changed
+495 -333

No files matched your search

@@ -104,15 +104,13 @@ namespace Artemis.UI.Screens.ProfileEditor.LayerProperties.Timeline
{
if (Segment != SegmentViewModelType.Main)
return false;
return SelectedProfileElement?.DisplayContinuously ?? false;
return SelectedProfileElement?.PlayMode == TimelinePlayMode.Repeat;
}
set
{
if (Segment != SegmentViewModelType.Main)
return;
SelectedProfileElement.DisplayContinuously = value;
SelectedProfileElement.PlayMode = value ? TimelinePlayMode.Repeat : TimelinePlayMode.Once;
ProfileEditorService.UpdateSelectedProfileElement();
NotifyOfPropertyChange(nameof(RepeatSegment));
}
@@ -348,7 +346,7 @@ namespace Artemis.UI.Screens.ProfileEditor.LayerProperties.Timeline
e.PropertyName == nameof(RenderProfileElement.MainSegmentLength) ||
e.PropertyName == nameof(RenderProfileElement.EndSegmentLength))
Update();
else if (e.PropertyName == nameof(RenderProfileElement.DisplayContinuously))
else if (e.PropertyName == nameof(RenderProfileElement.PlayMode))
NotifyOfPropertyChange(nameof(RepeatSegment));
}