示例#1
0
 private void Awake()
 {
     Cursors.InitDefaultCursor(this.regularCursor, this.regularCursorHotspot);
     Cursors.InitCursor(CursorType.HAND, this.handCursor, this.handCursorHotspot);
     Cursors.InitCursor(CursorType.INPUT, this.inputCursor, this.inputCursorHotspot);
     Cursors.SwitchToDefaultCursor();
 }
示例#2
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     if (((this.cursorType == CursorType.HAND) && base.gameObject.IsInteractable()) || (this.cursorType != CursorType.HAND))
     {
         Cursors.SwitchToCursor(this.cursorType);
         overObject = base.gameObject;
     }
 }
示例#3
0
 private void OnDisable()
 {
     if (overObject == base.gameObject)
     {
         overObject = null;
         Cursors.SwitchToDefaultCursor();
     }
 }
示例#4
0
        private void UnhighlightLink(int linkIndex)
        {
            TMP_LinkInfo info = this.tmpText.textInfo.linkInfo[linkIndex];

            string[] textArray1 = new string[] { "<u><link=", info.GetLinkID(), ">", info.GetLinkText(), "</link></u>" };
            string   newValue   = string.Concat(textArray1);

            this.tmpText.text = this.tmpText.text.Replace(this.GetColoredLinkText(newValue), newValue);
            Cursors.SwitchToDefaultCursor();
        }
示例#5
0
        private void HighlightLink(int linkIndex)
        {
            TMP_LinkInfo info = this.tmpText.textInfo.linkInfo[linkIndex];

            string[] textArray1 = new string[] { "<u><link=", info.GetLinkID(), ">", info.GetLinkText(), "</link></u>" };
            string   oldValue   = string.Concat(textArray1);

            this.tmpText.text = this.tmpText.text.Replace(oldValue, this.GetColoredLinkText(oldValue));
            Cursors.SwitchToCursor(CursorType.HAND);
        }
示例#6
0
 public void OnPointerExit(PointerEventData eventData)
 {
     Cursors.SwitchToDefaultCursor();
 }