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); }
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)); }
public void DoubleClickOpen() { IsSelected = !IsSelected; if (IsFolder) { FileClickedEvent?.Invoke(this, fileClickedArg); } else { DoubleClickEvent?.Invoke(this, fileClickedArg); } }
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; }
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); }
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); }
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); }
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)); }
protected override bool OnDoubleClick(DoubleClickEvent e) { segments.Add(new Segment(segments[segments.Count - 1].ControlPoints.Last())); return(true); }
override protected void Start() { dpiScaleFactor = 100.0f / Screen.dpi; touchDownEvent = new UnityEvent(); doubleClickEvent = new DoubleClickEvent(); }
protected override bool OnDoubleClick(DoubleClickEvent e) { DoubleClickReceived = true; return(true); }
public static void InvokeDoubleClickEvent(MouseClickEventArgs args) { DoubleClickEvent?.Invoke(args); }
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];
public void DoubleClick(object sender, MouseButtonEventArgs args) { DoubleClickEvent?.Invoke(sender, args); }