Beispiel #1
0
        public void OnPointerUp(PointerEventData eventData)
        {
            wrappers.ForEach(a => a.Selected = false);
            SetFocus();

            selectedChild = null;
        }
Beispiel #2
0
        public void PointerEnterOnChild(SfbEntry child, PointerEventData eventData)
        {
            if (Input.touchCount != 0)
            {
                return;
            }

            hoverTimer = Stopwatch.StartNew();
            hoverChild = child;
            hoverEvent = eventData;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        public void PointerExitOnChild(SfbEntry child)
        {
            if (Input.touchCount != 0)
            {
                return;
            }

            if (hoverChild != null)
            {
                hoverTimer.Stop();
                hoverChild = null;
                fileBrowser.HideTooltip();
            }
        }
Beispiel #5
0
        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;
        }
Beispiel #6
0
        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;
        }
Beispiel #7
0
 public void PointerDownOnChild(SfbEntry child)
 {
     selectedChild = child;
 }
Beispiel #8
0
        public void OnPointerUp(PointerEventData eventData)
        {
            wrappers.ForEach(a => a.Selected = false);
            SetFocus();

            selectedChild = null;
        }
Beispiel #9
0
 public void DropOnChild(SfbEntry child)
 {
 }
Beispiel #10
0
        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;
        }
Beispiel #11
0
        public void PointerExitOnChild(SfbEntry child)
        {
            if (Input.touchCount != 0) {
                return;
            }

            if (hoverChild != null) {
                hoverTimer.Stop();
                hoverChild = null;
                fileBrowser.HideTooltip();
            }
        }
Beispiel #12
0
        public void PointerEnterOnChild(SfbEntry child, PointerEventData eventData)
        {
            if (Input.touchCount != 0) {
                return;
            }

            hoverTimer = Stopwatch.StartNew();
            hoverChild = child;
            hoverEvent = eventData;
        }
Beispiel #13
0
 public void DropOnChild(SfbEntry child)
 {
 }
Beispiel #14
0
 public void PointerDownOnChild(SfbEntry child)
 {
     selectedChild = child;
 }