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

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

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

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

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

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

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