/// <summary> /// Makes the given frame visible. If no frame is given, makes the current frame visible. /// </summary> public void SetVisibleIndex(int?indexThatMustBeVisible = null) { if (!indexThatMustBeVisible.HasValue) { indexThatMustBeVisible = Emulator.Frame; } TasView.ScrollToIndex(indexThatMustBeVisible.Value); }
/// <summary> /// Makes the given frame visible. If no frame is given, makes the current frame visible. /// </summary> public void SetVisibleFrame(int?frame = null) { if (TasView.AlwaysScroll && _leftButtonHeld) { return; } TasView.ScrollToIndex(frame ?? Emulator.Frame); }
public void SetVisibleIndex(int?indexThatMustBeVisible = null) { if (!indexThatMustBeVisible.HasValue) { indexThatMustBeVisible = CurrentTasMovie.IsRecording ? CurrentTasMovie.InputLogLength : Emulator.Frame; } TasView.ScrollToIndex(indexThatMustBeVisible.Value); }
/// <summary> /// Makes the given frame visible. If no frame is given, makes the current frame visible. /// </summary> public void SetVisibleIndex(int?indexThatMustBeVisible = null) { if (TasView.AlwaysScroll && _leftButtonHeld) { return; } if (!indexThatMustBeVisible.HasValue) { indexThatMustBeVisible = Emulator.Frame; } TasView.ScrollToIndex(indexThatMustBeVisible.Value); }