mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Modules - Improved override behavior when activation reqs are met
Profile editor - Fixed error when pressing play without a selected element
This commit is contained in:
1 parent
fc91fd7225
commit
e30e37e8e3
2 files changed
+38
-19
No files matched your search
@@ -562,20 +562,23 @@ namespace Artemis.UI.Screens.ProfileEditor.LayerProperties
|
||||
Execute.PostToUIThread(() =>
|
||||
{
|
||||
var newTime = ProfileEditorService.CurrentTime.Add(TimeSpan.FromSeconds(e.DeltaTime));
|
||||
if (Repeating && RepeatTimeline)
|
||||
if (SelectedProfileElement != null)
|
||||
{
|
||||
if (newTime > SelectedProfileElement.TimelineLength)
|
||||
newTime = TimeSpan.Zero;
|
||||
}
|
||||
else if (Repeating && RepeatSegment)
|
||||
{
|
||||
if (newTime > GetCurrentSegmentEnd())
|
||||
newTime = GetCurrentSegmentStart();
|
||||
}
|
||||
else if (newTime > SelectedProfileElement.TimelineLength)
|
||||
{
|
||||
newTime = SelectedProfileElement.TimelineLength;
|
||||
Pause();
|
||||
if (Repeating && RepeatTimeline)
|
||||
{
|
||||
if (newTime > SelectedProfileElement.TimelineLength)
|
||||
newTime = TimeSpan.Zero;
|
||||
}
|
||||
else if (Repeating && RepeatSegment)
|
||||
{
|
||||
if (newTime > GetCurrentSegmentEnd())
|
||||
newTime = GetCurrentSegmentStart();
|
||||
}
|
||||
else if (newTime > SelectedProfileElement.TimelineLength)
|
||||
{
|
||||
newTime = SelectedProfileElement.TimelineLength;
|
||||
Pause();
|
||||
}
|
||||
}
|
||||
|
||||
ProfileEditorService.CurrentTime = newTime;
|
||||
|
||||
Reference in new issue
Block a user