Exemplo n.º 1
0
        protected override bool OnDoubleClick(DoubleClickEvent e)
        {
            // Todo: This should all not occur on double click, but rather if the previous control point is hovered.
            segmentStart            = HitObject.Path.ControlPoints[HitObject.Path.ControlPoints.Count - 1];
            segmentStart.Type.Value = PathType.Linear;

            currentSegmentLength = 1;
            return(true);
        }
Exemplo n.º 2
0
        protected override bool OnDoubleClick(DoubleClickEvent e)
        {
            if (!base.OnDoubleClick(e))
            {
                return(false);
            }

            EditorClock?.SeekSmoothlyTo(ClickedBlueprint.Item.StartTime);
            return(true);
        }
        protected override bool OnDoubleClick(DoubleClickEvent e)
        {
            //trigger double tap
            TapConfig tapConfig;

            if (MobileScrollAnixConfig.Value.TagConfigs.TryGetValue(TouchScreenTapInteractive.DoubleTap, out tapConfig))
            {
                OnTap(tapConfig);
            }

            return(base.OnDoubleClick(e));
        }
Exemplo n.º 4
0
        public void DoubleClickOpen()
        {
            IsSelected = !IsSelected;

            if (IsFolder)
            {
                FileClickedEvent?.Invoke(this, fileClickedArg);
            }
            else
            {
                DoubleClickEvent?.Invoke(this, fileClickedArg);
            }
        }
Exemplo n.º 5
0
 protected override void OnDestroy()
 {
     ClickEventPool.Recycle(m_onClick);
     m_onClick = null;
     UIButtonEventPool.Recycle(m_onDown);
     m_onDown = null;
     UIButtonEventPool.Recycle(m_onPress);
     m_onPress = null;
     UIButtonEventPool.Recycle(m_onUp);
     m_onUp = null;
     DoubleClickEventPool.Recycle(m_ondoubleClick);
     m_ondoubleClick = null;
 }
Exemplo n.º 6
0
        protected override bool OnDoubleClick(DoubleClickEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return(false);
            }

            // ensure the blueprint which was hovered for the first click is still the hovered blueprint.
            if (ClickedBlueprint == null || SelectionHandler.SelectedBlueprints.FirstOrDefault(b => b.IsHovered) != ClickedBlueprint)
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 7
0
        protected override bool OnDoubleClick(DoubleClickEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return(false);
            }

            // ensure the blueprint which was hovered for the first click is still the hovered blueprint.
            if (clickedBlueprint == null || selectionHandler.SelectedBlueprints.FirstOrDefault(b => b.IsHovered) != clickedBlueprint)
            {
                return(false);
            }

            editorClock?.SeekTo(clickedBlueprint.HitObject.StartTime);
            return(true);
        }
Exemplo n.º 8
0
        protected override bool OnDoubleClick(DoubleClickEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return(false);
            }

            SelectionBlueprint clickedBlueprint = selectionHandler.SelectedBlueprints.FirstOrDefault(b => b.IsHovered);

            if (clickedBlueprint == null)
            {
                return(false);
            }

            adjustableClock?.Seek(clickedBlueprint.HitObject.StartTime);
            return(true);
        }
Exemplo n.º 9
0
            protected override bool OnDoubleClick(DoubleClickEvent e)
            {
                if (state.Mode != LyricEditorMode.Manage)
                {
                    return(false);
                }

                // todo : not really sure is ok to split time-tag by double click?
                // need to make an ux research.
                var position = state.BindableCaretPosition.Value;

                if (position is TextCaretPosition textCaretPosition)
                {
                    lyricManager?.SplitLyric(Lyric, textCaretPosition.Index);
                    return(true);
                }

                throw new NotSupportedException(nameof(position));
            }
Exemplo n.º 10
0
 protected override bool OnDoubleClick(DoubleClickEvent e)
 {
     segments.Add(new Segment(segments[segments.Count - 1].ControlPoints.Last()));
     return(true);
 }
Exemplo n.º 11
0
 override protected void  Start()
 {
     dpiScaleFactor   = 100.0f / Screen.dpi;
     touchDownEvent   = new UnityEvent();
     doubleClickEvent = new DoubleClickEvent();
 }
Exemplo n.º 12
0
 protected override bool OnDoubleClick(DoubleClickEvent e)
 {
     DoubleClickReceived = true;
     return(true);
 }
Exemplo n.º 13
0
 public static void InvokeDoubleClickEvent(MouseClickEventArgs args)
 {
     DoubleClickEvent?.Invoke(args);
 }
Exemplo n.º 14
0
 protected override bool OnDoubleClick(DoubleClickEvent e)
 {
     // Todo: This should all not occur on double click, but rather if the previous control point is hovered.
     segmentStart            = HitObject.Path.ControlPoints[^ 1];
Exemplo n.º 15
0
 public void DoubleClick(object sender, MouseButtonEventArgs args)
 {
     DoubleClickEvent?.Invoke(sender, args);
 }