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

            TasView.ScrollToIndex(indexThatMustBeVisible.Value);
        }
Exemplo n.º 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);
        }