Example #1
0
        /// <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);
        }
Example #2
0
        /// <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);
        }
Example #3
0
        public void SetVisibleIndex(int?indexThatMustBeVisible = null)
        {
            if (!indexThatMustBeVisible.HasValue)
            {
                indexThatMustBeVisible = CurrentTasMovie.IsRecording
                                        ? CurrentTasMovie.InputLogLength
                                        : Emulator.Frame;
            }

            TasView.ScrollToIndex(indexThatMustBeVisible.Value);
        }
Example #4
0
        /// <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);
        }