public void OnPointerUp(PointerEventData eventData) { wrappers.ForEach(a => a.Selected = false); SetFocus(); selectedChild = null; }
public void PointerEnterOnChild(SfbEntry child, PointerEventData eventData) { if (Input.touchCount != 0) { return; } hoverTimer = Stopwatch.StartNew(); hoverChild = child; hoverEvent = eventData; }
public void PointerUpOnChild(SfbEntry child) { SetFocus(); // Check for mouse button up because OnPointerUp seems to get called even when the mouse button is down if (child == selectedChild && Input.GetMouseButtonUp(0)) { Click(child.wrapper); } selectedChild = null; }
public void PointerExitOnChild(SfbEntry child) { if (Input.touchCount != 0) { return; } if (hoverChild != null) { hoverTimer.Stop(); hoverChild = null; fileBrowser.HideTooltip(); } }
public void OnDrop(PointerEventData eventData) { if (selectedChild == null) { return; } Debug.Log("OnDrop on panel"); bool selection = !selectedChild.Selected; foreach (var wrapper in wrappers.Where(a => a.Pressed)) { wrapper.Pressed = false; wrapper.Selected = selection; } selectedChild = null; }
public void PointerDownOnChild(SfbEntry child) { selectedChild = child; }
public void DropOnChild(SfbEntry child) { }