Skip to content

Commit

Permalink
When recording float params, return to the Record screen when recordi…
Browse files Browse the repository at this point in the history
…ng is complete
  • Loading branch information
acidbubbles committed Nov 23, 2022
1 parent ec73d50 commit 91e4f1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/UI/Screens/RecordScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,12 @@ private IEnumerator OnRecordCo(int timeMode, bool recordExtendsLength, bool hide
showStartMarkers
);

var changedScreen = false;
if (!targets.OfType<FreeControllerV3AnimationTarget>().Any() && targets.OfType<JSONStorableFloatAnimationTarget>().Any())
{
ChangeScreen(TargetsScreen.ScreenName);
changedScreen = true;
}

while (enumerator.MoveNext())
yield return enumerator.Current;
Expand All @@ -210,6 +214,12 @@ private IEnumerator OnRecordCo(int timeMode, bool recordExtendsLength, bool hide
animationEditContext.ResetScrubberRange();
if (hideMenuDuringRecording)
SuperController.singleton.ShowMainHUDAuto();
if (changedScreen)
{
yield return 0;
// Note: The listener has been disposed, we have to ask the plugin
plugin.ChangeScreen(ScreenName, null);
}
}
}
}
Expand Down

0 comments on commit 91e4f1c

Please sign in to comment.