Пример #1
0
 public virtual void OnUIPointerElementDragStart(UIPointerEventArgs e)
 {
     if (UIPointerElementDragStart != null)
     {
         UIPointerElementDragStart(this, e);
     }
 }
 public virtual void OnUIPointerElementEnter(UIPointerEventArgs e)
 {
     if (UIPointerElementEnter != null)
     {
         UIPointerElementEnter(this, e);
     }
 }
Пример #3
0
 public virtual void OnUIPointerElementDragEnd(UIPointerEventArgs e)
 {
     if (UIPointerElementDragEnd != null)
     {
         UIPointerElementDragEnd(this, e);
     }
 }
Пример #4
0
 public virtual void OnUIPointerElementClick(UIPointerEventArgs e)
 {
     if (UIPointerElementClick != null)
     {
         UIPointerElementClick(this, e);
     }
 }
Пример #5
0
 private void UIPointerElementExit(object sender, VRTK.UIPointerEventArgs e)
 {
     if (GetComponent <VRTK.VRTK_Pointer>())
     {
         sceneManager.pointerOnMenu = false;
         GetComponent <VRTK.VRTK_Pointer>().Toggle(false);
     }
 }
Пример #6
0
 public virtual void OnUIPointerElementDragEnd(UIPointerEventArgs e)
 {
     if (UIPointerElementDragEnd != null)
     {
         UIPointerElementDragEnd(this, e);
         Debug.Log("UI Pointer Element Drag Start");
     }
 }
Пример #7
0
 // Token: 0x06001ACE RID: 6862 RVA: 0x0008D1A9 File Offset: 0x0008B3A9
 public virtual void OnUIPointerElementClick(UIPointerEventArgs e)
 {
     if (e.currentTarget == this.currentTarget)
     {
         this.ResetHoverTimer();
     }
     if (this.UIPointerElementClick != null)
     {
         this.UIPointerElementClick(this, e);
     }
 }
Пример #8
0
        public virtual void OnUIPointerElementExit(UIPointerEventArgs e)
        {
            if (UIPointerElementExit != null)
            {
                UIPointerElementExit(this, e);

                if (attemptClickOnDeactivate && !e.isActive && e.previousTarget)
                {
                    pointerEventData.pointerPress = e.previousTarget;
                }
            }
        }
Пример #9
0
        public virtual void OnUIPointerElementClick(UIPointerEventArgs e)
        {
            if (e.currentTarget == currentTarget)
            {
                ResetHoverTimer();
            }

            if (UIPointerElementClick != null)
            {
                UIPointerElementClick(this, e);
                FindObjectOfType <SoundManager>().PlaySound("ButtonClick");
            }
        }
        public virtual void OnUIPointerElementClick(UIPointerEventArgs e)
        {
            if (e.currentTarget == currentTarget)
            {
                ResetHoverTimer();
            }

            if (UIPointerElementClick != null)
            {
                UIPointerElementClick(this, e);
                Debug.Log("UI attempt click");
            }
        }
        public virtual void OnUIPointerElementClick(UIPointerEventArgs e)
        {
            Debug.Log(e.currentTarget.name);
            if (e.currentTarget == currentTarget)
            {
                ResetHoverTimer();
            }

            if (UIPointerElementClick != null)
            {
                UIPointerElementClick(this, e);
            }
        }
Пример #12
0
 // Token: 0x06001ACD RID: 6861 RVA: 0x0008D140 File Offset: 0x0008B340
 public virtual void OnUIPointerElementExit(UIPointerEventArgs e)
 {
     if (e.previousTarget == this.currentTarget)
     {
         this.ResetHoverTimer();
     }
     if (this.UIPointerElementExit != null)
     {
         this.UIPointerElementExit(this, e);
         if (this.attemptClickOnDeactivate && !e.isActive && e.previousTarget)
         {
             this.pointerEventData.pointerPress = e.previousTarget;
         }
     }
 }
Пример #13
0
 // Token: 0x06001ACC RID: 6860 RVA: 0x0008D0CC File Offset: 0x0008B2CC
 public virtual void OnUIPointerElementEnter(UIPointerEventArgs e)
 {
     if (e.currentTarget != this.currentTarget)
     {
         this.ResetHoverTimer();
     }
     if (this.clickAfterHoverDuration > 0f && this.hoverDurationTimer <= 0f)
     {
         this.canClickOnHover    = true;
         this.hoverDurationTimer = this.clickAfterHoverDuration;
     }
     this.currentTarget = e.currentTarget;
     if (this.UIPointerElementEnter != null)
     {
         this.UIPointerElementEnter(this, e);
     }
 }
Пример #14
0
        public virtual void OnUIPointerElementEnter(UIPointerEventArgs e)
        {
            if (e.currentTarget != currentTarget)
            {
                ResetHoverTimer();
            }

            if (clickAfterHoverDuration > 0f && hoverDurationTimer <= 0f)
            {
                canClickOnHover    = true;
                hoverDurationTimer = clickAfterHoverDuration;
            }

            currentTarget = e.currentTarget;
            if (UIPointerElementEnter != null)
            {
                UIPointerElementEnter(this, e);
            }
        }
Пример #15
0
        public virtual void OnUIPointerElementExit(UIPointerEventArgs e)
        {
            if (UIPointerElementExit != null)
            {
                UIPointerElementExit(this, e);

                if (attemptClickOnDeactivate && !e.isActive && e.previousTarget)
                {
                    pointerEventData.pointerPress = e.previousTarget;
                }
            }
        }
Пример #16
0
 public virtual void OnUIPointerElementEnter(UIPointerEventArgs e)
 {
     if (UIPointerElementEnter != null)
     {
         UIPointerElementEnter(this, e);
     }
 }